We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d3bf850 commit 0b2e17bCopy full SHA for 0b2e17b
docs/guide/authentication.rst
@@ -113,6 +113,22 @@ claims which was previously added to that account.
113
the next time a new token is issued.
114
115
116
+verify_id_token
117
+---------------
118
+
119
+You can decode the Firebase ID token, and check for claims.
120
121
+.. code-block:: python
122
123
+ # check if user is subscribed to premium
124
+ claims = auth.verify_id_token(user['IdToken'])
125
126
+ if claims['premium'] is True:
127
+ # Allow access to requested premium resource.
128
+ pass
129
+..
130
131
132
sign_in_anonymous
133
-----------------
134
0 commit comments