Skip to content

Auth explicit initialization #4714

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 11 commits into from
Apr 6, 2021
Merged

Auth explicit initialization #4714

merged 11 commits into from
Apr 6, 2021

Conversation

Feiyang1
Copy link
Member

@Feiyang1 Feiyang1 commented Apr 2, 2021

Implements go/firebase-next-auth-init

Removes the need to throw an exception if, for example, firestore is initialized before Auth. Addresses #4529

@changeset-bot
Copy link

changeset-bot bot commented Apr 2, 2021

🦋 Changeset detected

Latest commit: 76a533d

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 38 packages
Name Type
@firebase/component Minor
@firebase/app-types Patch
@firebase/app Patch
@firebase/rules-unit-testing Patch
@firebase/analytics Patch
@firebase/database Patch
@firebase/firestore Patch
@firebase/functions Patch
@firebase/installations Patch
@firebase/messaging Patch
@firebase/performance Patch
@firebase/remote-config Patch
@firebase/storage Patch
@firebase/database-types Patch
firebase Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@Feiyang1 Feiyang1 marked this pull request as draft April 2, 2021 06:59
@@ -76,6 +80,23 @@ export function registerAuth(clientPlatform: ClientPlatform): void {
},
ComponentType.PUBLIC
)
/**
* Auth can only be initialized by explicitly calling getAuth() or initializeAuth()
* For why we do this, See https://docs.google.com/document/d/1vy9aI-fELpL2xlREoZt12o0JNw-JVNz4OwxYd9HcT0Y/edit?resourcekey=0-A714tRurcRonkj3lDuKVCw#heading=h.wcvc4xz0pwxf
Copy link
Member

Choose a reason for hiding this comment

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

Please create a go link for this

@Feiyang1 Feiyang1 marked this pull request as ready for review April 6, 2021 06:30
@google-oss-bot
Copy link
Contributor

google-oss-bot commented Apr 6, 2021

Size Analysis Report

Affected Products

Diffs between base commit (65a4e85) and head commit (07cf951) are too large (84,524 characters) to display.

Please check below links to see details from the original test log.

@github-actions
Copy link
Contributor

github-actions bot commented Apr 6, 2021

Changeset File Check ⚠️

  • Warning: This PR modifies files in the following packages but they have not been included in the changeset file:

    • @firebase/app-compat
    • @firebase/app-exp
    • @firebase/auth-exp
    • @firebase/component

    Make sure this was intentional.

@Feiyang1 Feiyang1 merged commit f24d896 into master Apr 6, 2021
@Feiyang1 Feiyang1 deleted the fei-auth-init branch April 6, 2021 22:08
@google-oss-bot google-oss-bot mentioned this pull request Apr 6, 2021
@firebase firebase locked and limited conversation to collaborators May 7, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants