hi.. how to pass a header in Thirdparty.signinup({})..
tried options: {
requestInit: {
headers: {
"x-referral-code": localStorage.getItem("referral"),
},
},
},
but this doesnt work..
and also this
ThirdParty.init({
preAPIHook: async (request) => {
request.requestInit.headers["x-referral-code"] =
localStorage.getItem("referral");
},
}),
n
nkshah2
08/05/2022, 9:49 AM
Hi
nkshah2
08/05/2022, 9:49 AM
What sdk are you using?
s
sharukhrahman
08/05/2022, 9:49 AM
this is the backend code for signinup.. im using starlette
sharukhrahman
08/05/2022, 9:49 AM
web sdk
n
nkshah2
08/05/2022, 9:53 AM
Make sure to return the modified request init from the
SuperTokens is an open source authentication solution offering features like: Different types of login: Email / password, Passwordless (OTP or Magic link based).