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

Dalai Llama

05/11/2023, 11:45 AM
Hi, I have custom endpoint for signin, so I use createNewSession to set the cookies which is then used by frontend to check if session exists. I have updated the core and sdk and now createNewSession needs a new param of 'req'. I am passing it, and I see that it created refresh tokens and everything but on frontend, the cookie value shows 'remove'. Then I tested with createNewSessionWithoutRequestResponse and it actually sets the cookie values like 'sFrontendToken' but it gets in a loop of refreshing the tokens. Please let me know what can be the solution, I can use either createNewSession or createNewSessionWithoutRequestResponse.
r

rp

05/11/2023, 11:46 AM
hey @Dalai Llama which version of the frontend sdk are you using? please make sure to use the latest version only
d

Dalai Llama

05/11/2023, 11:48 AM
Using "supertokens-web-js": "^0.3.0" in vue3
r

rp

05/11/2023, 11:48 AM
please upgrade it to ^0.5.0
d

Dalai Llama

05/11/2023, 11:55 AM
ah ok, thanks