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-3588] Cache and return id token from memory so that object comparison works #975

Merged
merged 4 commits into from
Sep 9, 2022

Conversation

ewanharris
Copy link
Contributor

Changes

Adds an in memory cache that is used to cache the id token internally on Auth0Client so that when there are no updates the returned object is the same as previously returned. This will allow dependent SDKs to improve their signals around when the user object has updated.

Checklist

@ewanharris ewanharris requested a review from a team as a code owner September 7, 2022 10:32
__tests__/Auth0Client/getUser.test.ts Show resolved Hide resolved
src/cache/shared.ts Outdated Show resolved Hide resolved
@frederikprijck frederikprijck merged commit e71eae0 into v2 Sep 9, 2022
@frederikprijck frederikprijck deleted the feat/SDK-3588 branch September 9, 2022 07:09
@frederikprijck frederikprijck mentioned this pull request Oct 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants