Skip to content

expoClient storage silently fails on web platform #844

@AkaraChen

Description

@AkaraChen

When debugging Expo apps on web, the better-auth client silently fails because expo-secure-store is not supported in browsers.

This causes oRPC requests to fail silently when preparing cookies via better-auth client - fetch requests don't even appear in the Network tab.

Fix: Use window.localStorage as a fallback when Platform.OS === "web".

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions