Skip to content

Handle lookup returning empty array of users. #1082

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

Merged
merged 5 commits into from
Nov 9, 2020
Merged

Conversation

yuchenshi
Copy link
Member

@yuchenshi yuchenshi commented Nov 5, 2020

Discussion

This is a follow up to #1078 and improves the detection to be more robust for detecting no users returned.

Previously, it depends on .users not being present (instead of an empty array) when there are no users. This is not explicitly part of the API documentation or contract and we probably shouldn't depend on it.

Testing

  • New tests added and existing tests updated for the responseValidator.

API Changes

No public API changes included.

Copy link
Contributor

@bojeil-google bojeil-google left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just 2 nits

Copy link
Contributor

@hiranya911 hiranya911 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@yuchenshi yuchenshi merged commit fb2c63c into master Nov 9, 2020
@yuchenshi yuchenshi deleted the yuchenshi-patch-1 branch November 9, 2020 20:49
BorntraegerMarc pushed a commit to BorntraegerMarc/firebase-admin-node that referenced this pull request Jan 28, 2021
* Handle lookup returning empty array of users.

* Update tests.

* Use single quotes.

* Update auth-api-request.spec.ts
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants