Differentiating between NextAuth Providers
Open in Discord
Sloth bear posted this in #help-forum
My app allows auth using credentials/google. I'm using the
signIn callback function for Google but I realise that it gets called when I sign in using credentials as well. Do I not need the
authorise function for credentials in this case? Or is there a proper way of checking for the provider that's calling the function? Thanks!
you can use
signIn like this:
Yes that's how I'm using it
so what's the issue exactly??
signIn are being called, is that normal?
yes that's the normal flow of nextAuth
Okay just clarifying! So I'll just do the checks within
I'm not getting your point here?