-
Notifications
You must be signed in to change notification settings - Fork 944
Implement cross-window browser events for auth-next #3631
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
💥 No ChangesetLatest commit: 3a324fb 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 changesetsWhen 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 |
packages-exp/auth-exp/src/core/persistence/persistence_user_manager.ts
Outdated
Show resolved
Hide resolved
packages-exp/auth-exp/src/core/persistence/persistence_user_manager.ts
Outdated
Show resolved
Hide resolved
packages-exp/auth-exp/src/platform_browser/persistence/browser.ts
Outdated
Show resolved
Hide resolved
packages-exp/auth-exp/src/platform_browser/persistence/browser.ts
Outdated
Show resolved
Hide resolved
packages-exp/auth-exp/src/platform_browser/persistence/browser.ts
Outdated
Show resolved
Hide resolved
Binary Size ReportAffected SDKsNo changes between base commit (c1e9229) and head commit (4fc04e9). Test Logs
|
570191b
to
73aec54
Compare
|
||
it('should update tokens if they have changed', async () => { | ||
const userObj = user.toJSON(); | ||
(userObj['stsTokenManager'] as any)['accessToken'] = 'new-access-token'; |
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.
Have you run this using yarn test
? This should blow up the linter step
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.
seems to pass somehow....
73aec54
to
6ff492c
Compare
6ff492c
to
d13b99c
Compare
packages-exp/auth-exp/src/platform_browser/persistence/indexed_db.ts
Outdated
Show resolved
Hide resolved
packages-exp/auth-exp/src/platform_browser/persistence/indexed_db.ts
Outdated
Show resolved
Hide resolved
await new Promise(resolve => setTimeout(resolve, 100)); | ||
|
||
expect(callback).not.to.have.been.called; | ||
(persistence as any)['pendingWrites'] = 0; |
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.
This should also break the inter
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.
see above, seems to work for some reason
packages-exp/auth-exp/src/platform_browser/persistence/indexed_db.ts
Outdated
Show resolved
Hide resolved
packages-exp/auth-exp/src/platform_browser/persistence/local_storage.ts
Outdated
Show resolved
Hide resolved
packages-exp/auth-exp/src/platform_browser/persistence/local_storage.ts
Outdated
Show resolved
Hide resolved
* Implement cross-window browser events for auth-next * Split out local & session storage * Add persistence events to indexed DB * Add some tests & fix a couple issues with local storage events * Add tests for AuthImpl._onStorageEvent and fix getIdToken to trigger correctly * Merge conflicts * PR feedback
No description provided.