Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

React Native/Expo support #44

Open
imranbarbhuiya opened this issue May 22, 2024 · 3 comments
Open

React Native/Expo support #44

imranbarbhuiya opened this issue May 22, 2024 · 3 comments
Labels
enhancement New feature or request

Comments

@imranbarbhuiya
Copy link

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?

@fomalhautb
Copy link
Contributor

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 fomalhautb changed the title Question: can we use stack outside of nextjs? React Native/Expo support May 23, 2024
@imranbarbhuiya
Copy link
Author

I can probably help to implement and test this feature if you guide me on how can I proceed and what are the things we'll need to do in stack

@N2D4 N2D4 added the enhancement New feature or request label May 25, 2024
@imran1khan
Copy link
Contributor

@imranbarbhuiya are you still working on this one

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants