Skip to content
Back

How to implement - Invite only OAuth logins

  • 0
  • Web
  • Cloud
rajasekar
2 Feb, 2025, 17:03

I am working on a web app where users submit their email in the invitation page. OAuth should only allow signups from approved users. Existing users can sign-in without any issues. I am currently using Google OAuth. How can I achieve the above requirement?

TL;DR
Developers seeking to implement invite-only OAuth logins can achieve this by creating a whitelist of approved email addresses. By checking incoming sign-up requests against this whitelist, only approved users can create accounts through OAuth. Existing users can sign in as usual.
Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more