mirror of
https://github.com/better-auth/better-auth.git
synced 2026-05-27 17:36:42 -05:00
fix: cookie cache should be invalidated by update-user
This commit is contained in:
@@ -54,6 +54,13 @@ export const updateUser = <O extends BetterAuthOptions>() =>
|
||||
...additionalFields,
|
||||
},
|
||||
);
|
||||
/**
|
||||
* Update the session cookie with the new user data
|
||||
*/
|
||||
await setSessionCookie(ctx, {
|
||||
session: session.session,
|
||||
user,
|
||||
});
|
||||
return ctx.json({
|
||||
user,
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user