feat: add sign-out redirect URL and enhance sign-in redirect handling
This commit is contained in:
@@ -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))
|
||||
|
||||
@@ -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", () => {
|
||||
|
||||
Reference in New Issue
Block a user