Code audit

Authentication Handling

Enji Guard checks whether sign-in, sessions, recovery and sign-out keep the right identity.

  • Repository and branch
  • Read-only

What did the latest auth audit find?

Worked 4 s · Enji Guard via MCP  ›

Score 69/100 — needs attention. 2 findings:

  • High riskPassword change leaves other sessions active
  • High riskPassword reset links can be reused

Fix them.

Worked 52 s  ›

Done. Both fixed and covered with tests:

  • Password change ends all other sessions
  • Reset links work once and then expire

Tests pass. Ready for your review.

What the audit checks

Six areas across sign-in, sessions, recovery and sign-out.

  • Identity proof

    Sign-in via password, SSO, OAuth, API token, service or delegated identity.

  • Credential checks and storage

    How passwords are stored, checked and changed, and what stops guessing.

  • Session issuance and transport

    How cookies and tokens are issued: signature, lifetime, secure transport.

  • Session refresh and termination

    Refresh, rotation, replay and expiry, plus password changes and sign-out.

  • Account recovery and linking

    Link expiry, single use and binding to the right account.

  • One rule for every entry point

    Do all clients reject invalid proofs and enforce delegation rules?

The audit follows the session

What a report can find at each step

  1. Sign-in

    What proves identity: password, SSO, OAuth, API token.

  2. Session issuance

    How cookies and tokens are issued: signature, lifetime, transport.

  3. Session checks

    Every client rejects invalid or expired access.

  4. Refresh and access changes

    Refresh, password change, reset, email checks and account binding.

  5. Sign-out

    What keeps working after sign-out.

What's in the report

  • A 0–100 score
  • Findings with severity, confidence and location in the code
  • Scope — what was checked and what wasn't

What the audit is not

  • Does not touch live systems or the identity provider
  • Does not check access rights to objects and organizations
  • Does not flag JWT use or missing MFA on its own

Connect a repository

GitHub or GitLab. The audit doesn't change your code.