verify token fix 2
This commit is contained in:
parent
f72f25bebd
commit
0756ec8ce3
@ -6,7 +6,7 @@ HTTP_REQUEST = google.auth.transport.requests.Request()
|
|||||||
AUDIENCE = os.environ.get('GOOGLE_CLOUD_PROJECT')
|
AUDIENCE = os.environ.get('GOOGLE_CLOUD_PROJECT')
|
||||||
|
|
||||||
def verify_token(headers):
|
def verify_token(headers):
|
||||||
id_token = headers['Auth'].split(' ').pop()
|
id_token = headers['Authorization'].split(' ').pop()
|
||||||
|
|
||||||
claims = google.oauth2.id_token.verify_firebase_token(id_token, HTTP_REQUEST, audience=AUDIENCE)
|
claims = google.oauth2.id_token.verify_firebase_token(id_token, HTTP_REQUEST, audience=AUDIENCE)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user