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
Hello, I've been looking through the documentation for AuthJS and haven't been able to spot a way to solve my usecase.
I have a custom OIDC provider that I want to use to authenticate my users.
I don't want new users to be able to signup. I have a database pre-filled with users.
My OIDC provider doesn't use email.
Using the PrismaAdapter with database strategy
It seems that every time a user tries to sign in to my system AuthJS tries to call createUser and because my OIDC provider doesn't use email, that value is always undefined. This causes errors.
Is there a way for me to prevent the call to createUser when a user tries to sign in? Or instead of preventing the call just overriding the user exists check?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello, I've been looking through the documentation for AuthJS and haven't been able to spot a way to solve my usecase.
It seems that every time a user tries to sign in to my system AuthJS tries to call createUser and because my OIDC provider doesn't use email, that value is always undefined. This causes errors.
Is there a way for me to prevent the call to createUser when a user tries to sign in? Or instead of preventing the call just overriding the user exists check?
Beta Was this translation helpful? Give feedback.
All reactions