Slack Auth approved based login system

I'm trying to query my database when a user logs in with slack and I can't figure out how get it to work. I've tried the onSignIn callback and that doesn't seem to be called with the slack auth. database hooks don't do everything i want to do with my login.

What i want to do is create a user in the database using the slack return data and display a message saying that the user needs to be authorized by an admin to login. I also want to check to see if the user is disabled, deleted, ect..

how would i do this with slack auth using nextjs?
Was this page helpful?