Is there a way to know what is the current provider session the user choose to login? #3922
Answered
by
choutkamartin
lobatolais
asked this question in
Help
-
I |
Beta Was this translation helpful? Give feedback.
Answered by
choutkamartin
Feb 13, 2022
Replies: 1 comment 1 reply
-
Do you mean something like this? // [...nextauth].js
callbacks: {
async signIn({ user, account }) {
if (account.provider === "discord") {
// User is signing in via Discord
return true
}
else {
return false
}
}
}, |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
lobatolais
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Do you mean something like this?