-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
updateUser and updateSession typings broken for client #8258
Copy link
Copy link
Closed
Labels
bugSomething isn't workingSomething isn't workinglockedLocked conversations after being closed for 7 daysLocked conversations after being closed for 7 days
Description
Is this suited for github?
- Yes, this is suited for github
To Reproduce
import { createAuthClient } from 'better-auth/react';
const authClient = createAuthClient();
// both have `any` as their types
authClient.updateUser;
authClient.updateSession;Current vs. Expected behavior
the updateUser and updateSession typings should be valid rather than any
What version of Better Auth are you using?
1.5.0
System info
{
"system": {
"platform": "linux",
"arch": "x64",
"version": "-",
"release": "6.12.74-1-lts",
"cpuCount": 16,
"cpuModel": "AMD Ryzen 7 7840U w/ Radeon 780M Graphics",
"totalMemory": "54.73 GB",
"freeMemory": "48.84 GB"
},
"node": {
"version": "v24.13.1",
"env": "development"
},
"packageManager": {
"name": "pnpm",
"version": "10.30.3"
},
"frameworks": [
{
"name": "react",
"version": "^19.2.4"
},
{
"name": "hono",
"version": "^4.12.3"
}
],
"databases": [
{
"name": "postgres",
"version": "^3.4.8"
},
{
"name": "drizzle",
"version": "beta"
},
{
"name": "@neondatabase/serverless",
"version": "^1.0.2"
}
],
"betterAuth": {
"version": "1.5.0",
"config": null,
"error": "the cli fails to fetch this info - added version manually, and client isn't inferring anything from server config"
}
}Which area(s) are affected? (Select all that apply)
Client, Types
Auth config (if applicable)
Additional context
i've tried pruning my lockfile + node_modules folders and removing any plugins to keep it barebones (per the repro), but nothing has helped - worked fine before upgrading to 1.5.0
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workinglockedLocked conversations after being closed for 7 daysLocked conversations after being closed for 7 days