So I followed the docs to setup Google Auth in my app. But the trouble is anyone with a google account can sign into my CMS.
How do I implement a check to see if the email is the admin email.
I've tried everything I can think of but I just need a nudge in the right direction
TL;DR
To restrict Google Auth to only the admin email, you can add an email check in your authentication flow. Here's a brief overview:
1. Retrieve the authenticated user's email from Google Auth.
2. Compare the email to the admin email you've set.
3. If they match, proceed with authentication. Otherwise, block access.
This way, only the admin can access your CMS using Google Auth.