Skip to content

Clears getRedirectResult() in AuthEventManager for a deleted Auth instance #973

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 1 commit into from
Jun 30, 2018

Conversation

bojeil-google
Copy link
Contributor

@bojeil-google bojeil-google commented Jun 29, 2018

Clears getRedirectResult() in AuthEventManager for a specified Auth instance when it is deleted.

app.auth().getRedirectResult() => resolves with redirect result provided previous page called a redirect operation.
app.delete(); // deletes auth instance corresponding to app and clears redirect result.
// re-initialize app with same parameters.
app = firebase.initializeApp(config);
app.auth().getRedirectResult() should resolve with null.

This is needed for firebaseui-web react wrapper which on component unmount will delete the firebaseui instance (which deletes the internal auth instance). When the component is mounted again, the previously temp auth instance was still caching the redirect result.
firebase/firebaseui-web#440

Cleans up private property access in AuthEventManager tests.

…nstance when it is deleted.

app.auth().getRedirectResult() => resolves with redirect result provided previous page called a redirect operation.
app.delete(); // deletes auth instance corresponding to app and clears redirect result.
// re-initialize app with same parameters.
app = firebase.initializeApp(config);
app.auth().getRedirectResult() should resolve with null.

This is needed for firebaseui-web react wrapper which on component unmount will delete the firebaseui instance (which deletes the internal auth instance). When the component is mounted again, the previously temp auth instance was still caching the redirect result.
firebase/firebaseui-web#440

Cleans up private property access in AuthEventManager tests.
@wti806 wti806 merged commit 27d2778 into master Jun 30, 2018
@bojeil-google bojeil-google deleted the clear-redirect-result branch August 26, 2018 07:06
@firebase firebase locked and limited conversation to collaborators Oct 18, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants