mirror of
https://github.com/better-auth/better-auth.git
synced 2026-07-30 17:12:35 -05:00
fix(oidc-provider): handle string timestamps in user profile claims (#4176)
This commit is contained in:
@@ -785,7 +785,7 @@ export const oidcProvider = (options: OIDCOptions) => {
|
||||
family_name: user.name.split(" ")[1],
|
||||
name: user.name,
|
||||
profile: user.image,
|
||||
updated_at: user.updatedAt.toISOString(),
|
||||
updated_at: new Date(user.updatedAt).toISOString(),
|
||||
};
|
||||
const email = {
|
||||
email: user.email,
|
||||
|
||||
Reference in New Issue
Block a user