-
Notifications
You must be signed in to change notification settings - Fork 2
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
Is approach not working with ios anymore ? #7
Comments
Have you found a solution to this? Am currently trying to make nextauth work with capacitor and I am having the same problems. |
Yes, I've done it, but it was really difficult and not best solution, better to create custom auth for mobile with jwt.
|
Thanks for your reply!! By UseSession() you mean the actual useSession() hook that retrieves the session data in a component? By Custom Provider do you mean A Custom SessionProvider Context or a custom provider as in "EmailProvider" "GoogleProvider" etc? |
yep, you could not use useSession hook "from the box". By Custom Provider do you mean A Custom SessionProvider Context or a custom provider as in "EmailProvider" "GoogleProvider" etc? both, i used custom credentialsProvider (in next-auth file) + native google auth (capacitor plugin)/fb/etc to authroize users, not good solution, but i didnt find another way |
There is no possible to set "http://" or "https://" instead of "capacitor://" in requests to next-auth, therefore origin and host are different in requests to next-auth and providers urls are not exist in response by server. Do you know about this? is it possible to manage it anyway?
The text was updated successfully, but these errors were encountered: