Skip to content

v0.39.1

Choose a tag to compare

@donalddellapietra donalddellapietra released this 07 Oct 01:38
· 11 commits to main since this release

Patch Changes

  • Fix: signing out of a native app (nativeAuthSignOut, behind the Expo and React Native clients' signOut) and deepspace auth logout did not revoke the session on the auth worker. Better Auth refuses a cookie-bearing sign-out without a JSON body (415) and a trusted Origin (403), and both requests omitted the body, the native one also the Origin, so the session stayed valid until it expired. Both now send them. The native route sends the app's own origin, as the browser does through the app's /api/auth/sign-out proxy, and answers 502 when the auth worker does not revoke the session; the client still clears its stored session either way. Apps get the native fix on their next deploy.