-
Notifications
You must be signed in to change notification settings - Fork 0
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
Issue with on device Expo #1
Comments
Currently I'm maintaining the On the Next.js or Expo project, install next-auth. Then install patch-package. Then clone the PR to your machine, pnpm install and then cd into package/next-auth. Here run pnpm build, then copy the With next-auth patched, on Expo use the If you have set up to use the PR branch and still didn't work out, then provide some info around how you intended to set up the app on the real device, that would make it easier to track what went wrong. One thing to check is that you didn't configure the callback url on GitHub as |
@raphaelmsr The WEBHOST is supposed to point to your trpc url I believe. It's irrelevant to the current next-auth/expo setup, so if you don't use trpc just skip it. I'll post to the PR the way I use the PR on my app (which I briefed to you above). Maybe in the next 24 hours or so. |
Also notice the |
Here you go: nextauthjs/next-auth#5240 (comment) |
Wow sorry about that, just went AFK right after my message. Yes I was wondering this since it was redirecting to localhost and localhost doesn't work on device but only IP address Thanks again for your time answering this ! |
I started expo by clearing cache and re-updated my GitHub account and now it does go to the redirect but I have a Since we are initialising two actual different providers 'github' and 'githubExpo'; it does not allow linking the same account on both devices. |
Yeah currently we can't just automatically link 2 different GitHub providers together. We must manually link them. Here's roughly how, but I wasn't renovate this code yet so it went stale. Basically we check if the two GitHub accounts is the same, then link them together. |
This is how I managed to link both, work in both ways. Would you recommend continuing with this project template or just wait on the implementation of NextAuth in Expo ? |
Hey there! Saw your amazing PR in NextAuth and I am actively following your work on integrating NextAuth in expo for this amazing stack, kudos!
But it seems like this has only been tested on a simulator with Expo; I am having env issues for the WEBHOST variable in the trpcClient, also the callback redirection after a the Expo & Github login show me an error for mismatch URL (I have set two GitHub Apps on purpose one for expo one for next)
Have you managed to run this on a actual device ?
Thanks in advance, I hope I can contribute in some way :)
The text was updated successfully, but these errors were encountered: