Skip to content

docs(express): update requireAuth and requireRole refusal bodies - #151

Merged
Bccorb merged 1 commit into
mainfrom
docs/express-guard-refusals
Nov 2, 2026
Merged

Bccorb merged 1 commit into
mainfrom
docs/express-guard-refusals

Conversation

@Bccorb

@Bccorb Bccorb commented Nov 2, 2026

Copy link
Copy Markdown
Contributor

@seamless-auth/express 0.24.0 changed the guard refusals to match the Go, Python and Rust adapters (fells-code/seamless-auth-server#263). The Express without JWT guide still quoted the old bodies.

  • requireAuth answers 401 {"error":"unauthenticated"} for a missing or invalid session.
  • A recovery session gets 403 {"error":"enrollment_required"}.
  • requireRole answers 403 {"error":"insufficient_role"} and no longer names roles.
  • The page notes these bodies need 0.24 or later.

@Bccorb
Bccorb merged commit da171d0 into main Nov 2, 2026
3 checks passed
@Bccorb
Bccorb deleted the docs/express-guard-refusals branch November 2, 2026 02:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant