Skip to content

[FRONTEND] Add route guards for authenticated pages #248

@dev-fatima-24

Description

@dev-fatima-24

Priority: high

Description

Patient Dashboard and Issuer Dashboard are accessible without a connected wallet. Route guards should redirect unauthenticated users to the Landing page.

Acceptance Criteria

  • Navigating to /dashboard without a JWT redirects to /
  • Navigating to /issuer without an issuer-role JWT redirects to /
  • Redirect preserves the intended destination for post-login redirect
  • Guards re-evaluate when the JWT expires
  • No flash of protected content before redirect

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions