How to allow only a few specific people for Google user authentication in Firebase

Asked 2 years ago, Updated 2 years ago, 122 views

Authentication using Firebase soon found out how to treat regular users with Google accounts, but
I couldn't find a way to authenticate only the owners of a specific Gmail address that I had previously authorized with Google's OAuth.

If possible, I would like to log in with my Google account.
If it's difficult, I don't mind doing anything else.

How do I set Firebase to allow only regular users to view and administrator users to use only a few pre-registered users?

According to the explanation of this main house
https://stackoverflow.com/questions/17607101/firebase-authenticate-as-admin

signInWithCustomToken or this is deprecated, so it would be good to use signInAndRetrieveDataWithCustomToken, but I don't know how to allow only certain users when I read the custom token description.

How can I allow login only to pre-configured users?

firebase authentication-authorization

2022-09-30 16:33

1 Answers

Is it possible to replace the problem by saying, "We can authenticate, but we will not be able to obtain data?"
If so, it is easy to implement by setting security rules such as databases.


2022-09-30 16:33

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.