mirror of
https://github.com/nicotsx/zerobyte.git
synced 2026-06-03 21:59:36 -04:00
* test(e2e): fail in unexpected console.error * fix(datetime): graceful fallback during SSR when navigator is undefined
8 lines
267 B
TypeScript
8 lines
267 B
TypeScript
export function isAuthRoute(pathname: string) {
|
|
if (pathname === "/onboarding") return true;
|
|
if (pathname === "/login") return true;
|
|
if (pathname.match(/^\/login\/[^/]+$/)) return true;
|
|
if (pathname.match(/^\/login\/[^/]+\/error$/)) return true;
|
|
return false;
|
|
}
|