Undocumented method refetch of session

The refetch method of session (and possibly other atoms) isn't documented in the official docs and isn't recognized by TypeScript. Example:
// @ts-expect-error Undocumented method :-(
const method = authClient.useSession().get().refetch
console.log(method) // Method exists and works
// @ts-expect-error Undocumented method :-(
const method = authClient.useSession().get().refetch
console.log(method) // Method exists and works
Limited documentation available: - Better Auth Client Concepts – shown in the React example - Pull Request #1403 – part of the v1.1.16 changelog
0 Replies
No replies yetBe the first to reply to this messageJoin

Did you find this page helpful?