You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, thanks for this awesome solution. Is this only limited to nextjs app router or can it be used outside of nextjs. I've an expo app where I want to use the same auth as the website one so can I use this for both website and app?
The text was updated successfully, but these errors were encountered:
Hey by design the core of Stack should work in mobile app environment. You just need to initialise StackClientApp instead of StackServerApp and only pass in the client keys, then all the client side functionalities should be on that object.
However, there are a few things that we still need to do to make it fully work with RN/Expo:
Token storage system for mobile (currently stored in cookies on web)
OAuth redirect URL/browser opening for mobile (it is slightly different there)
I tried once to set it up in RN/Expo but I encountered some compiling/dependency issues. I will check again later and see if there are easy fixes to it.
fomalhautb
changed the title
Question: can we use stack outside of nextjs?
React Native/Expo support
May 23, 2024
Hi, thanks for this awesome solution. Is this only limited to nextjs app router or can it be used outside of nextjs. I've an expo app where I want to use the same auth as the website one so can I use this for both website and app?
The text was updated successfully, but these errors were encountered: