When using Email provider, is it possible to specify certain emails to access? #1727
-
I'm building an internal site, and it should only be accessible to certain users. Is it possible to specify certain emails that can be signed in through Email provider, so the admin can manage who can access the site? I'm not sure if this is possible for the passwordless tech, or I need to use username/password approach. Thanks for your input! |
Beta Was this translation helpful? Give feedback.
Answered by
StefanSelfTaught
Apr 17, 2021
Replies: 1 comment
-
You can try to use the signIn callback like this: async signIn(user, account) {
if (account.type === 'email' && user.email = '[email protected]') {
return true
}
return false
} |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
balazsorban44
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can try to use the signIn callback like this: