Skip to content
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

[SDK-2603] Expose custom caching options from Auth0 SPA SDK #255

Merged
merged 8 commits into from
Jul 14, 2021

Conversation

stevehobbsdev
Copy link
Contributor

@stevehobbsdev stevehobbsdev commented Jul 5, 2021

Description

This PR upgrades @auth0/auth0-spa-js to v1.16.0 and exposes the new custom cache option.

References

https://github.com/auth0/auth0-spa-js/releases/tag/v1.16.0
auth0/auth0-spa-js#743

Testing

  • This change adds test coverage for new/changed/fixed functionality

Checklist

  • I have added documentation for new/changed functionality in this PR or in auth0.com/docs
  • All active GitHub checks for tests, formatting, and security are passing
  • The correct base branch is being used, if not master

@stevehobbsdev stevehobbsdev added CH: Added PR is adding feature or functionality review:small Small review labels Jul 5, 2021
@stevehobbsdev stevehobbsdev requested a review from a team as a code owner July 5, 2021 16:07
adamjmcgrath
adamjmcgrath previously approved these changes Jul 6, 2021
@@ -350,6 +350,7 @@ describe('Auth0Provider', () => {
act(() => {
result.current.logout({ localOnly: true });
});
await waitForNextUpdate();
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@adamjmcgrath Can you confirm if this is the way to handle this in the test? As the logout function is now async, I concluded that we'd need to wait until the next tick before asserting (it fails without this line).

Copy link
Contributor

Choose a reason for hiding this comment

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

@stevehobbsdev logout needs to remain sync by default here as well - I added c874251

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks for taking care of it 👍🏻

Copy link
Contributor

@adamjmcgrath adamjmcgrath left a comment

Choose a reason for hiding this comment

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

need to return the promise from logout

adamjmcgrath
adamjmcgrath previously approved these changes Jul 8, 2021
@adamjmcgrath adamjmcgrath merged commit 13fe17d into master Jul 14, 2021
@adamjmcgrath adamjmcgrath deleted the sdk-2603/cache-support branch July 14, 2021 09:51
@benhunterandrewrobertson

Awesome work guys, been holding out for this one. Much appreciated!

@adamjmcgrath adamjmcgrath mentioned this pull request Jul 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CH: Added PR is adding feature or functionality review:small Small review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants