Do not require expo-secure-store when providing custom storage #422

Closed
opened 2026-03-13 07:45:15 -05:00 by GiteaMirror · 2 comments
Owner

Originally created by @hyoban on GitHub (Dec 18, 2024).

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). ### 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
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.

@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.

@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#422