Repository navigation
v0.39.1
·
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) anddeepspace auth logoutdid not revoke the session on the auth worker. Better Auth refuses a cookie-bearing sign-out without a JSON body (415) and a trustedOrigin(403), and both requests omitted the body, the native one also theOrigin, 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-outproxy, 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.