8000 Fixing some documentation errors (#144) · jakubro/firebase-admin-python@1af54ed · GitHub
[go: up one dir, main page]

Skip to content
This repository was archived by the owner on Apr 15, 2023. It is now read-only.

Commit 1af54ed

Browse files
authored
Fixing some documentation errors (firebase#144)
1 parent b9a0f1b commit 1af54ed

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

firebase_admin/auth.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ def create_custom_token(uid, developer_claims=None, app=None):
6868
app: An App instance (optional).
6969
7070
Returns:
71-
string: A token minted from the input parameters.
71+
bytes: A token minted from the input parameters.
7272
7373
Raises:
7474
ValueError: If input parameters are invalid.

firebase_admin/credentials.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,12 @@
3333
'https://www.googleapis.com/auth/userinfo.email'
3434
]
3535

36-
AccessTokenInfo = collections.namedtuple(
37-
'AccessTokenInfo', ['access_token', 'expiry'])
36+
AccessTokenInfo = collections.namedtuple('AccessTokenInfo', ['access_token', 'expiry'])
37+
"""Data included in an OAuth2 access token.
38+
39+
Contains the access token string and the expiry time. The expirty time is exposed as a
40+
``datetime`` value.
41+
"""
3842

3943

4044
class Base(object):

0 commit comments

Comments
 (0)
0