better-auth expo client doesn't handle cancelation correctly
- Expo app with expo client plugin, Hono backend with expo server plugin
- Start an OAuth flow in an external browser with
let result = await authClient.signIn.social({ provider: 'google' })
- Cancel the OAuth flow
- result
is
which looks the same a successful auth. It should have an error instead.
Relevant code:
https://github.com/better-auth/better-auth/blob/canary/packages/expo/src/client.ts#L181-L182GitHub
better-auth/packages/expo/src/client.ts at canary · better-auth/be...
The most comprehensive authentication framework for TypeScript - better-auth/better-auth
0 Replies