Best way to managed who can sign in ? (with prisma) #4855
Unanswered
laurent512
asked this question in
Help
Replies: 1 comment 1 reply
-
Any idea ? I would also appreciate any redirection ^^ |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
First of all thank you for the great library, I am grateful for the amazing job you are doing.
In my project, I enabled github providers with prisma adapter for authentication.
Issue is that I would love to be able to filter who can sign In based on their email address.
I saw the callback method proposal and wondering what is the best (safe & easy) way to filter who can sign in.
For example, is it a working solution that in my User table of prisma, I add by myself record containing only the email of people allowed and verify in the signin callback if the email is present in that database ?
Would that be a safe solution ?
Thank you in advance !
Beta Was this translation helpful? Give feedback.
All reactions