-
Notifications
You must be signed in to change notification settings - Fork 326
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
feat(clerk-expo): Add secure token cache implementation and rename secureStore
#5375
Conversation
🦋 Changeset detectedLatest commit: 81c632a The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 1 Skipped Deployment
|
secureStore
packages/expo/package.json
Outdated
}, | ||
"expo-secure-store": { | ||
"optional": true |
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.
We should remove this in the next major, because if someone is not using this package they will get errors when updating their package.
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.
Good catch and I agree. Updated. thanks!
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 like we are not deprecating properly. And we are introducing breaking changes since secureStore
is no longer exported from the expected path.
const item = await SecureStore.getItemAsync(key); | ||
return item; | ||
} catch (error) { | ||
console.error('Clerk: Failed to retrieve token from SecureStore:', error); |
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.
I'd remove that.
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.
Removed 👍🏼
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.
25b7130
to
e539a3c
Compare
Description
This PR introduces a default secure token cache (basically what's in our quickstart) and deprecates
secureStore
in favor ofresourceCache
for the experimental offline support.Resolves ECO-510
Checklist
pnpm test
runs as expected.pnpm build
runs as expected.Type of change