This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from google.oauth2 import service_account | |
from google.auth.transport.requests import AuthorizedSession | |
# Define the required scopes | |
scopes = [ | |
"https://www.googleapis.com/auth/userinfo.email", | |
"https://www.googleapis.com/auth/firebase.database" | |
] | |
# Authenticate a credential with the service account |