mirror of
https://github.com/bknd-io/bknd/
synced 2026-08-03 00:26:01 +00:00
Merge remote-tracking branch 'origin/fix/auth-redirect-and-adapter-config' into feat/waku
This commit is contained in:
@@ -217,7 +217,7 @@ export class Authenticator<Strategies extends Record<string, Strategy> = Record<
|
||||
|
||||
await addFlashMessage(c, String(error), "error");
|
||||
|
||||
const referer = this.getSafeUrl(c, opts?.redirect ?? c.req.header("Referer") ?? "/");
|
||||
const referer = this.getSafeUrl(c, c.req.header("Referer") ?? "/");
|
||||
return c.redirect(referer);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user