From 3b3e026be3f6de7dc8482cd7d9eef36cc302737f Mon Sep 17 00:00:00 2001 From: Bereket Engida Date: Sun, 20 Apr 2025 07:43:16 +0300 Subject: [PATCH] docs: add ctx on custom session example --- docs/content/docs/concepts/session-management.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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,