hooks: {
after: createAuthMiddleware(async (ctx) => {
if (ctx.path.startsWith('/sign-in')) {
// Why are these both `null`?
console.log('[Auth] new session:', ctx.context.newSession)
console.log('[Auth] session:', ctx.context.session)
}
}),
},
hooks: {
after: createAuthMiddleware(async (ctx) => {
if (ctx.path.startsWith('/sign-in')) {
// Why are these both `null`?
console.log('[Auth] new session:', ctx.context.newSession)
console.log('[Auth] session:', ctx.context.session)
}
}),
},