Skip to content

Update the auth event manager to handle redirects. Add redirect logic to popupredirectresolver #3409

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 6 commits into from
Jul 15, 2020

Conversation

sam-gc
Copy link
Contributor

@sam-gc sam-gc commented Jul 15, 2020

No description provided.

@changeset-bot
Copy link

changeset-bot bot commented Jul 15, 2020

💥 No Changeset

Latest commit: a2d6336

Merging this PR will not cause any packages to be released. If these changes should not cause updates to packages in this repo, this is fine 🙂

If these changes should be published to npm, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

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

@google-oss-bot
Copy link
Contributor

google-oss-bot commented Jul 15, 2020

Binary Size Report

Affected SDKs

No changes between base commit (37e930c) and head commit (4a81c74).

Test Logs

Copy link
Contributor

@avolkovi avolkovi left a comment

Choose a reason for hiding this comment

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

looks great

@@ -50,26 +50,17 @@ import {
signInWithCustomToken,
signInWithEmailAndPassword,
unlink,
<<<<<<< HEAD
Copy link
Contributor

Choose a reason for hiding this comment

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

how'd we get a merge conflict in the main branch?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yeah no idea

}

unregisterConsumer(authEventConsumer: AuthEventConsumer): void {
this.consumers.delete(authEventConsumer);
}

onEvent(event: AuthEvent): void {
onEvent(event: AuthEvent): boolean {
Copy link
Contributor

Choose a reason for hiding this comment

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

this is ok... potentially worth refactoring eventually to handle redirect events in a completely separate path from popup events

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Agreed. Added a comment in popup_redirect.ts

@sam-gc sam-gc merged commit d59ed26 into auth-next Jul 15, 2020
avolkovi pushed a commit that referenced this pull request Aug 6, 2020
… to popupredirectresolver (#3409)

* Update event manager and abstract popup redirect operation to handle redirect events

* Missing popup_redirect update

* Tests

* Formatting

* PR feedback

* Formatting
avolkovi pushed a commit that referenced this pull request Aug 10, 2020
… to popupredirectresolver (#3409)

* Update event manager and abstract popup redirect operation to handle redirect events

* Missing popup_redirect update

* Tests

* Formatting

* PR feedback

* Formatting
@firebase firebase locked and limited conversation to collaborators Aug 15, 2020
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.

3 participants