You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to implement a two step authorization. i.e. use Google/Facebook/name-your-method authentication and then check the associated email is verified and is in a white list database of authorized emails. It is my understanding that this can be done with NextAuth using the signIn call back.
For sk-auth, the documentation states:
SvelteKitAuth provides some callbacks, similar to NextAuth.js. Their call signatures are:
asyncsignIn({ user, account, profile, email, credentials }){constisAllowedToSignIn=trueif(isAllowedToSignIn){returntrue}else{// Return false to display a default error messagereturnfalse// Or you can return a URL to redirect to:// return '/unauthorized'}}
Even when I put a signIn() call back, it is never called. Looking for all appearances of signIn in the source code gives this:
Thus it seems signIn is never called. Is that an upcoming upgrade, or is there another method to do what I want to do?
The text was updated successfully, but these errors were encountered:
FunMiles
changed the title
signIn callback does not follow NextAuth APi and is not called.
signIn callback does not follow NextAuth API and is not called.
Apr 28, 2022
I am trying to implement a two step authorization. i.e. use Google/Facebook/name-your-method authentication and then check the associated email is verified and is in a white list database of authorized emails. It is my understanding that this can be done with NextAuth using the
signIn
call back.For sk-auth, the documentation states:
NextAuth has the following interface for
signIn
:Even when I put a
signIn()
call back, it is never called. Looking for all appearances ofsignIn
in the source code gives this:Thus it seems
signIn
is never called. Is that an upcoming upgrade, or is there another method to do what I want to do?The text was updated successfully, but these errors were encountered: