calum7865
03/21/2023, 10:56 AMcalum7865
03/21/2023, 10:56 AM>>>> GET /api/v1/auth/users/f57bf866-89cd-41a0-a050-090bb03e0e18 X-Forwarded-Host: localhost:3000
X-Forwarded-Proto: http
X-Forwarded-Port: 3000
X-Forwarded-For: 127.0.0.1
Sec-Fetch-Site: same-origin
Sec-Fetch-Mode: cors
Sec-Fetch-Dest: empty
Cookie: csrftoken=XXXXXXXX; _ga_JQ0QLB8NY7=XXXXXXXX; _ga=XXXXXXX; csrf_token_XXXXXX; sessionid=XXXXXX; st-last-access-token-update=XXXXXX; sAccessToken=XXXXXX; sFrontToken=XXXXXXX
Referer: http://localhost:3000/
Connection: close
Accept-Encoding: gzip, deflate, br
Accept-Language: en-GB,en;q=0.5
Accept: application/json, text/plain, */*
User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/111.0
Host: localhost:5000
calum7865
03/21/2023, 10:57 AM>>>> GET /api/v1/briefs/ Host: 127.0.0.1:5000
User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/111.0
Accept: application/json, text/plain, */*
Accept-Language: en-GB,en;q=0.5
Accept-Encoding: gzip, deflate, br
Origin: http://localhost:3000
Referer: http://localhost:3000/
Connection: keep-alive
Sec-Fetch-Dest: empty
Sec-Fetch-Mode: cors
Sec-Fetch-Site: cross-site
calum7865
03/21/2023, 10:58 AMjavascript
SuperTokens.init({
appInfo: {
appName: "p100",
apiDomain: "http://localhost:5000",
websiteDomain: "http://localhost:3000",
apiBasePath: "/api/v1/auth",
websiteBasePath: "/auth"
},
recipeList: [
Session.init(),
EmailVerification.init({
mode: "OPTIONAL",
}),
ThirdPartyEmailPassword.init({
getRedirectionURL: async (context) => {
if (context.action === "SUCCESS") {
if (context.isNewUser) {
return '/onboarding/user';
} else {
if (context.redirectToPath !== undefined)
return context.redirectToPath;
return '/';
}
}
return undefined;
},
signInAndUpFeature: {
providers: [
Google.init(),
]
},
style: supertokensStyle,
resetPasswordUsingTokenFeature: {
enterEmailForm: {
style: suptertokensResetStyle
}
}
}),
]
});
calum7865
03/21/2023, 10:59 AM/api/v1/auth/users/<user_id>
which has had the cookies added is that supertokens is not adding their custom header rid: anti-csrf
rp_st
03/21/2023, 10:59 AMrp_st
03/21/2023, 10:59 AMcalum7865
03/22/2023, 11:44 AMSuperTokens is an open source authentication solution offering features like: Different types of login: Email / password, Passwordless (OTP or Magic link based).
Powered by