You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
def create_custom_token(uid, developer_claims=None, app=None):
"""Builds and signs a Firebase custom auth token.
Args:
uid: ID of the user for whom the token is created.
developer_claims: A dictionary of claims to be included in the token
(optional).
app: An App instance (optional).
Returns:
string: A token minted from the input parameters.
Raises:
ValueError: If input parameters are invalid.
"""
token_generator = _get_auth_service(app).token_generator
return token_generator.create_custom_token(uid, developer_claims)
Environment
Problem
The docstring says it returns a string, but in python 3, this actually returns a
bytes
type. https://github.com/firebase/firebase-admin-python/blob/master/firebase_admin/auth.py#L745 returns bytes fromjwt.encode
The text was updated successfully, but these errors were encountered: