Immediate Redirect to Provider #1435
-
I'm looking at Keycloak to maintain external social logins, but I'm interested in using this library to take care of the OAuth handling for me as it can get tricky and I'd rather not roll that myself. My question is, is there a way to immediately redirect to a provider without having the extra step of clicking a button to do the log in? Thanks! |
Beta Was this translation helpful? Give feedback.
Answered by
balazsorban44
Mar 4, 2021
Replies: 1 comment 4 replies
-
There is, please read the docs 🙂 https://next-auth.js.org/getting-started/client#starts-google-oauth-sign-in-flow-when-clicked (You replace |
Beta Was this translation helpful? Give feedback.
4 replies
Answer selected by
balazsorban44
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
There is, please read the docs 🙂 https://next-auth.js.org/getting-started/client#starts-google-oauth-sign-in-flow-when-clicked
(You replace
"google"
with the id of your provider)