Replies: 1 comment
-
Beta Was this translation helpful? Give feedback.
0 replies
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.
Uh oh!
There was an error while loading. Please reload this page.
-
Environment
Reproduction URL
https://github.com/ScreamZ/next-auth-bug-expo
Describe the issue
I want to use Expo (React Native) to authenticate user through my app, for that I'm trying to get an Auth session. Currently I've been able to achieve the first part but this is not working.
My goal is :
DAMN this is sooooo complicated! I'll try few more hours or just leave to lucia auth.
It's really hard to use the REST API and it really looks bugged.

It works on first call but on subsequent the is a csrf ERROR.
How to reproduce
Use snack.expo.dev/@screamz/next-auth or the linked repo in github (same code)
Install Expo Go on your phone
Launch the given app with the reproduction URL on your phone
Change the endpoint of your application with Next Auth Enabled and Discord auth (or any oAuth service), but if not discord, change the code in the Expo Snack to call other provider. You can use us in the repo.
Expected behavior
Every calls should returns the URL for the callback, currently this only happen on first time
Beta Was this translation helpful? Give feedback.
All reactions