I'm wrapping my NextJS app with `ThirdPartyEmailPa...
# support-questions
m
I'm wrapping my NextJS app with
ThirdPartyEmailPasswordAuth
from
supertokens-auth-react
to expose the Supertokens context to the any of the components. When I disable all cookies in my browser the
ThirdPartyEmailPasswordAuth
causes it to fail because there is no localStorage or cookies. Is there a preferred way to gracefully handle the
ThirdPartyEmailPasswordAuth
if cookies are disabled?
r
We heavily rely on cookies for the auth logic to work. You can override the cookieHandler in the supertokens.init function call to handle this case. An example of how to use cookieHandler can be found here: https://github.com/supertokens/supertokens-auth-react/blob/master/examples/with-thirdpartypasswordless-electron/src/cookieHandler.ts Btw, what graceful behaviour would you expect the auth wrapper to have in this case?
6 Views