Workflow

    Authentication Layer (Clerk Middleware)

    Clerk middleware and auth routes are present in code; source docs still include legacy NextAuth references.

    authclerksystemRPS Digital

    Workflow diagram

    Swipe horizontally to inspect the full diagram.

    Part of project

    RPS DigitalParent project
    Authentication Layer (Clerk Middleware)This workflow
    Workflow diagramRendered with the workflow
    Workflow

    Authentication Layer (Clerk Middleware)

    5 steps
    1. Request hits Clerk middleware
      action
    2. Route ignored?
      decision
    3. Route public?
      decision
    4. Require Clerk session for protected routes
      action
    5. Proceed to route handler
      state