Skip to content

Protect routes and restrict access to authenticated users #3

@asmanasir

Description

@asmanasir
  • Check if user is logged in
  • Redirect to /login if not authenticated
  • Protect pages:
    • /post
    • /chat
    • /profile
  • Show user session in frontend

Goal:
Only logged-in users can access protected pages

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions