Some checks are pending
E2E / Playwright e2e (push) Waiting to run
- Added OnboardClaimPage and OnboardMigrationPage components for user onboarding. - Integrated OAuth login flow for Google and Microsoft accounts. - Implemented error handling and user feedback for claim and migration processes. - Created MigrationStepList and MigrationOnboardingAlerts components for progress tracking. - Added MailDomainsSection and MigrationProjectsPanel for admin settings. - Introduced e2e tests for onboarding migration scenarios.
17 lines
662 B
TypeScript
17 lines
662 B
TypeScript
const AUTH_PUBLIC_PREFIXES = ["/login", "/auth/", "/api/auth/"]
|
|
|
|
/** Routes without session enforcement (login, public shares, interactive demos). */
|
|
export function isAuthPublicPath(pathname: string): boolean {
|
|
if (pathname === "/") return true
|
|
if (pathname.startsWith("/drive/s/")) return true
|
|
if (pathname === "/demo" || pathname.startsWith("/demo/")) return true
|
|
if (pathname.startsWith("/onboard/")) return true
|
|
return AUTH_PUBLIC_PREFIXES.some(
|
|
(prefix) => pathname === prefix || pathname.startsWith(prefix)
|
|
)
|
|
}
|
|
|
|
export function isDemoPublicPath(pathname: string): boolean {
|
|
return pathname === "/demo" || pathname.startsWith("/demo/")
|
|
}
|