Restricting Oauth from Specific Domain Only
I'm using the Nuxt Supabase module: https://supabase.nuxtjs.org/
I am writing a web app for a client that uses GSuite for their company email. It's easy enough for me to write some logic for registering staff emails if I use email/pw or magic link auth, but I was curious about the OAuth methods of registering new users.
Is there a way to restrict OAuth registrations to a specific GSuite domain? So that only people with @companyname.com accounts can register using OAuth?
If so, how might I do this? Thanks for your insight.
I am writing a web app for a client that uses GSuite for their company email. It's easy enough for me to write some logic for registering staff emails if I use email/pw or magic link auth, but I was curious about the OAuth methods of registering new users.
Is there a way to restrict OAuth registrations to a specific GSuite domain? So that only people with @companyname.com accounts can register using OAuth?
If so, how might I do this? Thanks for your insight.
Nuxt x Supabase - Docs
A supa simple wrapper around supabase-js to enable usage and integration within Nuxt.
