For FastAPI I am using depends and verifySession and its working fine locally for get + post requests but in production only get requests are working. I thought it might be something to do with the fact that the post request has and Content-Type header so i added that to init but its still throwing a 401 error code
r
rp_st
11/23/2022, 4:46 AM
Hey! This usually happens if you don’t provide the anti CSRF token in the request
rp_st
11/23/2022, 4:46 AM
Are you querying via postman?
j
Joe P
11/23/2022, 4:46 AM
I am querying via swagger ui
r
rp_st
11/23/2022, 4:46 AM
I see. So yes. Please make sure that the tokens r set correctly
SuperTokens is an open source authentication solution offering features like: Different types of login: Email / password, Passwordless (OTP or Magic link based).