[V5] Secure API Call within NextAuth Callbacks to Verify User Status #12137
Unanswered
aymericfontaine
asked this question in
Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello everyone 👋
I am currently working on a feature to verify whether a user still exists in the database and hasn’t been deactivated. Here’s the current NextAuth configuration code I’m using:
To ensure security, I would like to check if the user is still active by making an API call, as I am unable to use Prisma with edge runtime.
Endpoint Code
Questions
Thank you in advance for your suggestions and ideas!
Beta Was this translation helpful? Give feedback.
All reactions