Workflowauthclerktopic:system

    Authentication Layer (Clerk Middleware)

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

    Context

    This workflow is part of RPS Digital project.

    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