Skip to content
This repository was archived by the owner on Jun 23, 2026. It is now read-only.

Skips token validation on auth routes - #46

Merged
FinnTheHero merged 2 commits into
masterfrom
development
Aug 22, 2025
Merged

Skips token validation on auth routes#46
FinnTheHero merged 2 commits into
masterfrom
development

Conversation

@FinnTheHero

Copy link
Copy Markdown
Owner

The token validation middleware now bypasses token extraction and claim setting for critical authentication endpoints. This ensures that routes such as /api/user/login, /api/user/refresh, and /api/user/logout can operate correctly without requiring a valid access token upfront.

This adjustment prevents premature unauthorized errors, allowing the respective handlers to manage initial authentication, token renewal, or token invalidation processes as intended.

Exempts login, token refresh, and logout endpoints from standard access token validation. These routes either don't carry an access token or handle session management in a way that bypasses this specific validation.
@FinnTheHero FinnTheHero self-assigned this Aug 22, 2025
@FinnTheHero FinnTheHero added the enhancement New feature or request label Aug 22, 2025
@FinnTheHero
FinnTheHero merged commit fbfca9c into master Aug 22, 2025
2 checks passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant