({ session, token })
| 417 | return token; |
| 418 | }, |
| 419 | async session({ session, token }) { |
| 420 | // @WARNING: Anything stored in the session will be sent over |
| 421 | // to the client. |
| 422 | session.user = { |
| 423 | ...session.user, |
| 424 | // Propagate the userId to the session. |
| 425 | id: token.userId, |
| 426 | } |
| 427 | session.sessionVersion = token.sessionVersion; |
| 428 | |
| 429 | return session; |
| 430 | }, |
| 431 | }, |
| 432 | providers: (await getProviders()).map((provider) => provider.__provider), |
| 433 | pages: { |
nothing calls this directly
no outgoing calls
no test coverage detected