I want to verify the token id my code its working, but why is working? i setup good?
i have that doubt because auth variable does not know the credentials to verify the token, the variable who know the credentials is firebase_app, how auth variable is verifying the token?
from firebase_admin import auth
from django.conf import settings
fire_credentials = credentials.Certificate(FIREBASE_CONFIG_credentials)
fire_app = firebase_admin.initialize_app(fire_credentials)
def login():
token = 'eyJhbGciO...'
try:
auth.verify_id_token(token)