From e19e47106bdd2e8d2ec7b49f83cf4a24af2412b1 Mon Sep 17 00:00:00 2001 From: Abhimanyu Saharan Date: Mon, 9 Feb 2026 01:07:36 +0530 Subject: [PATCH] feat: add sign-out redirect URL and enhance sign-in redirect handling --- backend/migrations/env.py | 3 +-- frontend/src/auth/redirects.test.ts | 4 +++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/backend/migrations/env.py b/backend/migrations/env.py index 4e18843c..a2fe6e10 100644 --- a/backend/migrations/env.py +++ b/backend/migrations/env.py @@ -4,11 +4,10 @@ import sys from logging.config import fileConfig from pathlib import Path +from alembic import context from sqlalchemy import engine_from_config, pool from sqlmodel import SQLModel -from alembic import context - PROJECT_ROOT = Path(__file__).resolve().parents[1] if str(PROJECT_ROOT) not in sys.path: sys.path.append(str(PROJECT_ROOT)) diff --git a/frontend/src/auth/redirects.test.ts b/frontend/src/auth/redirects.test.ts index fa5396ac..45638c3f 100644 --- a/frontend/src/auth/redirects.test.ts +++ b/frontend/src/auth/redirects.test.ts @@ -26,7 +26,9 @@ describe("resolveSignInRedirectUrl", () => { it("rejects protocol-relative urls", () => { vi.stubEnv("NEXT_PUBLIC_CLERK_SIGN_IN_FALLBACK_REDIRECT_URL", "/activity"); - expect(resolveSignInRedirectUrl("//evil.example.com/path")).toBe("/activity"); + expect(resolveSignInRedirectUrl("//evil.example.com/path")).toBe( + "/activity", + ); }); it("rejects external absolute urls", () => {