mirror of
https://github.com/better-auth/better-auth.git
synced 2026-05-25 16:36:34 -05:00
docs: add ctx on custom session example
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user