refactor: format public paths in RedirectHandler for improved readability

- Reformatted the publicPaths array in the RedirectHandler component for better code clarity and maintainability.
This commit is contained in:
Daniel Luiz Alves
2025-08-01 10:02:52 -03:00
parent 965c64b468
commit 29efe0a10e

View File

@@ -10,7 +10,15 @@ interface RedirectHandlerProps {
children: React.ReactNode; children: React.ReactNode;
} }
const publicPaths = ["/login", "/forgot-password", "/reset-password", "/auth/callback", "/auth/oidc/callback", "/s/", "/r/"]; const publicPaths = [
"/login",
"/forgot-password",
"/reset-password",
"/auth/callback",
"/auth/oidc/callback",
"/s/",
"/r/",
];
const homePaths = ["/"]; const homePaths = ["/"];
export function RedirectHandler({ children }: RedirectHandlerProps) { export function RedirectHandler({ children }: RedirectHandlerProps) {