Skip to content

v0.149.1

Choose a tag to compare

@nstfkc nstfkc released this 18 Oct 21:10
· 188 commits to main since this release

Fixes

  • Sign-out now clears the user without a page refresh (#985, #986). useSignOut used to refetch /auth/me. That request answers 401 once signed out, and a failed read keeps the cached data, so useUser() went on returning the old user until a refresh. It now writes null to /auth/me directly.
  • useSignOut({}) (no onSuccess) no longer throws, and a throwing onSuccess can't leave the user on screen: the callback runs last.

Upgrade notes

  • useSignOut no longer makes a /auth/me request after signing out; the cached user becomes null directly.