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
{"data": {"redirect": true, "url": "https://accounts.google.com/o/oauth2/auth?..."}, "error": null}
{"data": {"redirect": true, "url": "https://accounts.google.com/o/oauth2/auth?..."}, "error": null}
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-L182
GitHub
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
No replies yetBe the first to reply to this messageJoin

Did you find this page helpful?