chore: fixing redirect path

Signed-off-by: benjdlambert <ben@blam.sh>

Signed-off-by: benjdlambert <ben@blam.sh>
This commit is contained in:
benjdlambert
2025-07-03 19:47:41 +02:00
parent ff251064ae
commit e31a1e2c0c
@@ -107,8 +107,10 @@ export class OidcRouter {
// todo(blam): maybe this URL could be overridable by config if
// the plugin is mounted somewhere else?
const consentUrl = new URL('/oidc/consent', this.appUrl);
consentUrl.searchParams.append('consent_id', result.consentRequestId);
const consentUrl = new URL(
`/auth/consent/${result.consentRequestId}`,
this.appUrl,
);
return res.redirect(consentUrl.toString());
} catch (error) {