Skip to content

Commit 0b364bc

Browse files
author
Jon Wayne Parrott
authored
Add region tag
1 parent 32c6547 commit 0b364bc

File tree

1 file changed

+2
-0
lines changed
  • appengine/standard/firebase/firenotes/backend

1 file changed

+2
-0
lines changed

appengine/standard/firebase/firenotes/backend/main.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,11 +73,13 @@ def list_notes():
7373
"""Returns a list of notes added by the current Firebase user."""
7474

7575
# Verify Firebase auth.
76+
# [START verify_token]
7677
id_token = request.headers['Authorization'].split(' ').pop()
7778
claims = google.oauth2.id_token.verify_firebase_token(
7879
id_token, HTTP_REQUEST)
7980
if not claims:
8081
return 'Unauthorized', 401
82+
# [END verify_token]
8183

8284
notes = query_database(claims['sub'])
8385

0 commit comments

Comments
 (0)