supertokens / supertokens-website

Frontend SDK for SuperTokens - for session management + automatically refreshing sessions
https://supertokens.com
Other
54 stars 13 forks source link

Add test for deleting cookies when core returns "UNAUTHORISED" response on call to refresh session #71

Closed seniorquico closed 3 years ago

seniorquico commented 3 years ago

In our C# backend implementation, we missed a call to delete the frontend cookies when the core returned an UNAUTHORISED response when the frontend was calling the refresh session endpoint on the backend. It would be awesome to have a test for this specific scenario, as it's quite difficult for us to reproduce within the backend itself (depends on an UNAUTHORISED response from the core).

rishabhpoddar commented 3 years ago

Test added and merged with master branch.