OAuth Email Allowlist

Im looking to have a controlled email list to limit who can sign up to my application that i can maintain as a simple array in my /auth/callback route in next.js

But by the time they've clicked sign in with google to hit the callback to exchange a code for a session or whatever a supabase account would have already been created as far as im aware but I dont want to have to deal with lingering accounts from anybody or any amount that aren't "valid".

So looking for help to understand how to go about limiting OAuth with Google to a controlled list without having like "ghost" supabase accounts
Was this page helpful?