url
Some checks are pending
Backend CI / test (push) Waiting to run
Backend CI / build (push) Blocked by required conditions
Deploy Mnemo Cards / Deploy Backend (push) Waiting to run
Deploy Mnemo Cards / Deploy Web App (push) Blocked by required conditions
Deploy Mnemo Cards / Final Verification (push) Blocked by required conditions

This commit is contained in:
Dmitry 2025-12-11 21:47:18 +03:00
parent 7fd10d16f5
commit 8224c1334a

View file

@ -56,7 +56,9 @@ Middleware authorizeV2(UserManager userManager, JwtService jwtService) {
return await innerHandler(request);
}
// Check for dynamic auth paths (e.g., /auth/telegram/code-status/<code>)
if (normalizedPath.startsWith('/auth/telegram/code-status/')) {
if (normalizedPath.startsWith('/auth/telegram/code-status/')
|| normalizedPath.startsWith('/admin/auth/request-code')
|| normalizedPath.startsWith('/admin/auth/verify-code')) {
// Code status endpoint is public (used before authentication)
return await innerHandler(request);
}