diff --git a/docs/content/docs/concepts/session-management.mdx b/docs/content/docs/concepts/session-management.mdx index afcf8e8e61..b82c5d902c 100644 --- a/docs/content/docs/concepts/session-management.mdx +++ b/docs/content/docs/concepts/session-management.mdx @@ -258,7 +258,7 @@ export const auth = betterAuth({ ...options, plugins: [ ...(options.plugins ?? []), - customSession(async ({ user, session }) => { + customSession(async ({ user, session }, ctx) => { // now both user and session will infer the fields added by plugins and your custom fields return { user,