Restrict Login/SignUp

I want to build an app where only authorized users have access, and I only want to support github auth. How to create a plugin which checks if the email is whitelisted?
Was this page helpful?