(nextUrl: URL)
| 67 | }); |
| 68 | |
| 69 | const redirectToLogin = (nextUrl: URL) => { |
| 70 | const loginUrl = new URL("/login", serverEnv().WEB_URL); |
| 71 | loginUrl.searchParams.set("next", nextUrl.toString()); |
| 72 | return HttpServerResponse.redirect(loginUrl); |
| 73 | }; |
| 74 | |
| 75 | // Rebuilds the consent-page URL from the current request so an expired |
| 76 | // session can restart the flow after login. Resolved as a sibling of the |