Is there a way to use NextAuth just for handling cookie session token management etc without using provider? #973
Unanswered
liuxiaofeng1981
asked this question in
Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Your question
I wonder is there a way to use NextAuth just for handling cookie session token management etc without using a provider?
Say I have a custom service that my app uses to handle authentication with an OAuth provider such as Auth0 or sth else, my app directs user to there and does authentication and redirect back with access & refresh token. I just want to skip the part of implement create httpOnly cookie and persist those tokens part by utilising NextAuth. Is that possible?
What are you trying to do
Use the custom authentication app to get the Oauth token and redirects back to my app, use NextAuth to handle the management of set cookie session / token part.
Reproduction
Feedback
Documentation refers to searching through online documentation, code comments and issue history. The example project refers to next-auth-example.
Beta Was this translation helpful? Give feedback.
All reactions