verify token fix

This commit is contained in:
Łukasz Jędyk 2022-01-31 18:42:32 +01:00
parent 7aba9dfa39
commit f72f25bebd

View File

@ -6,7 +6,7 @@ HTTP_REQUEST = google.auth.transport.requests.Request()
AUDIENCE = os.environ.get('GOOGLE_CLOUD_PROJECT')
def verify_token(headers):
id_token = headers['auth'].split(' ').pop()
id_token = headers['Auth'].split(' ').pop()
claims = google.oauth2.id_token.verify_firebase_token(id_token, HTTP_REQUEST, audience=AUDIENCE)