diff --git a/app/src/auth/authenticate/Authenticator.ts b/app/src/auth/authenticate/Authenticator.ts index 63f4f22..13fa6bc 100644 --- a/app/src/auth/authenticate/Authenticator.ts +++ b/app/src/auth/authenticate/Authenticator.ts @@ -316,10 +316,7 @@ export class Authenticator = Record< return c.json(data); } - const successUrl = this.getSafeUrl( - c, - redirect ? redirect : (this.config.cookie.pathSuccess ?? "/") - ); + const successUrl = this.getSafeUrl(c, redirect ?? this.config.cookie.pathSuccess ?? "/"); const referer = redirect ?? c.req.header("Referer") ?? successUrl; //console.log("auth respond", { redirect, successUrl, successPath });