[GH-ISSUE #928] Do not require expo-secure-store when providing custom storage #25828

Closed
opened 2026-04-17 16:05:51 -05:00 by GiteaMirror · 2 comments
Owner

Originally created by @hyoban on GitHub (Dec 18, 2024).
Original GitHub issue: https://github.com/better-auth/better-auth/issues/928

Is this suited for github?

  • Yes, this is suited for github

Is your feature request related to a problem? Please describe.

No response

Describe the solution you'd like

Just remove the dependency on expo-secure-store and let users configure it

Describe alternatives you've considered

Only dynamically import expo-secure-store when no storage is provided

Additional context

I am willing to submit a PR to fix this issue

Originally created by @hyoban on GitHub (Dec 18, 2024). Original GitHub issue: https://github.com/better-auth/better-auth/issues/928 ### Is this suited for github? - [x] Yes, this is suited for github ### Is your feature request related to a problem? Please describe. _No response_ ### Describe the solution you'd like Just remove the dependency on `expo-secure-store` and let users configure it ### Describe alternatives you've considered Only dynamically import `expo-secure-store` when no storage is provided ### Additional context I am willing to submit a PR to fix this issue
GiteaMirror added the locked label 2026-04-17 16:05:51 -05:00
Author
Owner

@Bekacru commented on GitHub (Dec 18, 2024):

Yeah, good suggestion. would appreciate a PR. I'm not sure if dynamic imports cause any issues with Metro. If they do, we could make the storage user defined. If not, it should be imported dynamically.

<!-- gh-comment-id:2550388788 --> @Bekacru commented on GitHub (Dec 18, 2024): Yeah, good suggestion. would appreciate a PR. I'm not sure if dynamic imports cause any issues with Metro. If they do, we could make the storage user defined. If not, it should be imported dynamically.
Author
Owner

@hyoban commented on GitHub (Dec 18, 2024):

I tried. Dynamic import works fine, but await import will make the plugin async.

<!-- gh-comment-id:2550828533 --> @hyoban commented on GitHub (Dec 18, 2024): I tried. Dynamic import works fine, but `await import` will make the plugin async.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/better-auth#25828