auth setPersistence for web #8773
Unanswered
rsouthgate
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hey all,
I'm using the lib in an expo app that runs on both native and web. I have gone down the path of just using the native lib since it supports the modules we are using on web seamlessly. But a new feature has come up where we've hit a stumbling block - when on the web the product people want a remember me option so we can change the session persistence. Now if we were using the web library directly we could use the setPersistence method from firebase/auth. Since this isn't supported by the native lib I was hoping I could somehow retrieve the web version of the auth instance through the native library so I can just import and use the web based setPersistence if on web. Or if there is a better way of achieving this then please let me know, but. Ireally don't want to have to swap out the whole lib on web for the js version.
Cheers
Robin
Beta Was this translation helpful? Give feedback.
All reactions