https://supertokens.com/ logo
session issue
i

ikak

05/26/2023, 11:37 AM
@rp There is a problem with the frontend. If I clear the st-last-access-token-update cookie and then try to login/signup, supertokens' backend will start giving error. Even after reloading the page, it won't work. It happened with me earlier also but that was because I was using * in cors , but now that is not the case. My backend supertokens-python version is 0.12.6, in the frontend the versions are: "supertokens-auth-react": "^0.31.1", "supertokens-node": "^13.0.2", "supertokens-web-js": "^0.5.0",
r

rp

05/26/2023, 11:38 AM
hey @ikak you are using our node and python backend sdks?
i

ikak

05/26/2023, 11:38 AM
yes the frontend is on nextjs and backend is fastapi
r

rp

05/26/2023, 11:46 AM
i see. So could you elaborate step by step how to reproduce the issue please? Also what is the error that the backend gives?
i

ikak

05/26/2023, 11:53 AM
The backend starts giving "POST /auth/session/refresh HTTP/1.1" 401 Unauthorized error
Also I don't know when or how did this happen I just started the app in incognito application and saw that the cookie is not getting created
Also if I go back several commits then last-access cookie is getting created but the access token is not created after logging in just the front token is created
r

rp

05/26/2023, 11:57 AM
Can you please tell us how to reproduce this? Or if you enable frontend debug logs and show the output when you are in this state.
i

ikak

05/26/2023, 11:58 AM
How can i enable the frontend logs
and then scroll down
i

ikak

05/26/2023, 12:30 PM
Nevermind it was a silly mistake on my end only, thhanks for the help.
r

rp

05/26/2023, 12:32 PM
ah ok. What was the issue?