Authenticating another application after next-auth authentication #1274
-
After users sign in on my application for the first time, I need it to automatically redirect to another page (Github App installation). I am not using a database, so I can't use "newUser" on pages, and the redirect callback isn't particularly helpful since it would redirect to the page every time the user wants to sign in or sign out. New user signs in --> next-auth authenticates user --> redirects to another page to install Github App What is the best way to implement this with next-auth? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
you can use a client-side redirect with Next.js's |
Beta Was this translation helpful? Give feedback.
you can use a client-side redirect with Next.js's
useRouter().push
that you call after you got a validnext-auth
user session.