Files
better-auth/packages
Cursor Agentandbekacru 7c2cee6ddf fix(expo): support async storage in client plugin
The Expo client plugin was not properly awaiting async storage operations,
which caused issues when users used async storage implementations like
AsyncStorage. This could result in sign-out not deleting sessions from the
database because the cookie wasn't being read correctly before the request.

Changes:
- Added Promise.resolve() wrapper to storage.getItem() calls to support
  both sync and async storage implementations
- Added tests for async storage scenarios
- Added tests to verify session deletion on sign-out

Fixes #5868

Co-authored-by: bekacru <bekacru@gmail.com>
2026-02-02 19:36:23 +00:00
..
2026-01-30 16:44:59 -08:00
2026-01-30 16:44:59 -08:00
2026-01-30 16:44:59 -08:00
2026-01-30 16:44:59 -08:00