Skip to content

Route guard (redirect unauthenticated → /auth) #1889

@P-Kilian

Description

@P-Kilian

Description

Protect authenticated routes and redirect unauthenticated users to the /auth page.

Suggested solution

Implement middleware, hooks, or higher-order component for authentication checks. Use Supabase auth session to determine status.

Alternative

Other routing mechanisms based on front-end frameworks.

Additional context

Common practice for secure applications; minimizes access to restricted content.

Validations

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions