Add test for doesSessionExist
returning false when backend is not reachable
#67
Labels
enhancement
New feature or request
Problem
Currently (supertokens/supertokens-auth-react@1c9f5b3)
supertokens-auth-react
relies ondoesSessionExist
returning false inSessionAuth
when backend is not reachable.Goal
Preserve the bevaiour to keep the developer experience good. It should still render the UI when backend is unreachable, because we instruct the user to setup the frontend first.
Solution
Add a unit test:
doesSessionExist
false
and NOT throw an errorNote:
doesSessionExist
calls refresh session function underneath, so make sure to test for this case as well.Prerequisites
This will require unit tests to be set up.
The text was updated successfully, but these errors were encountered: