docs: add ctx on custom session example

This commit is contained in:
Bereket Engida
2025-04-20 07:43:16 +03:00
parent 57e2b8bdb2
commit 3b3e026be3

View File

@@ -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,