mirror of
https://github.com/better-auth/better-auth.git
synced 2026-09-01 02:55:08 -05:00
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>