-
Notifications
You must be signed in to change notification settings - Fork 946
Implement useAuthEmulator and remove auth.useEmulator. #4414
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
|
use(sinonChai); | ||
use(chaiAsPromised); | ||
|
||
describe('core/auth/emulator', () => { |
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.
All tests moved from auth_impl.ts
. No changes except API.
url: string, | ||
options?: { disableWarnings: boolean } | ||
): void { | ||
const authInternal = _castAuth(auth); |
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.
Logic below moved from auth_impl.ts
with s/this/authInternal/g
.
emitEmulatorWarning(!!options?.disableWarnings); | ||
} | ||
|
||
function emitEmulatorWarning(disableBanner: boolean): void { |
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.
Moved verbatim.
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.
Accidentally used my test account there before
Binary Size ReportAffected SDKsNo changes between base commit (0eeefe2) and head commit (7027c46). Test Logs
|
Changeset File Check ✅
|
Hey there! So you want to contribute to a Firebase SDK?
Before you file this pull request, please read these guidelines:
Discussion
(Discussed internally)
Testing
All tests are just moved to a new file and then I changed
auth.useEmulator(...)
touseAuthEmulator(auth, ...)
. No changes in behavior.API Changes
This removes the
auth.useEmulator(...)
non-modular API and addsuseAuthEmulator(auth, ...)
modular API, as discussed internally. I'd appreciate we merge this PR ASAP to minimize impact. I can clean up the logic in a follow up PR.