-
Notifications
You must be signed in to change notification settings - Fork 343
Custom Claims and List Users Support #86
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
firebase_admin/_user_mgt.py
Outdated
raise ValueError('Max results must be an integer.') | ||
elif max_results < 1 or max_results > MAX_LIST_USERS_RESULTS: | ||
raise ValueError( | ||
'Max results must be a positive non-zero integer less than ' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't believe that zero is positive, so you can just say "positive integer less than"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
Related to #60 |
Adding two new operations to the
auth
module:list_users(page_token, max_results)
: Facilitates paging through all the user accounts of a Firebase project.set_custom_user_claims(uid, claims)
: Sets custom attributes on a user account.go/firebase-admin-custom-claims