({ request, auth })
| 104 | session: { strategy: "jwt" }, |
| 105 | callbacks: { |
| 106 | authorized({ request, auth }) { |
| 107 | const { pathname } = request.nextUrl |
| 108 | if (pathname === "/middleware-example") return !!auth |
| 109 | return true |
| 110 | }, |
| 111 | jwt({ token, trigger, session, account }) { |
| 112 | if (trigger === "update") token.name = session.user.name |
| 113 | if (account?.provider === "keycloak") { |
nothing calls this directly
no outgoing calls
no test coverage detected