From 8224c1334ab47060df3d176c6bd13bebd9803321 Mon Sep 17 00:00:00 2001 From: Dmitry Date: Thu, 11 Dec 2025 21:47:18 +0300 Subject: [PATCH] url --- mnemo_cards_backend/lib/api/v2/authorize_v2.dart | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mnemo_cards_backend/lib/api/v2/authorize_v2.dart b/mnemo_cards_backend/lib/api/v2/authorize_v2.dart index 08a3d49..491faed 100644 --- a/mnemo_cards_backend/lib/api/v2/authorize_v2.dart +++ b/mnemo_cards_backend/lib/api/v2/authorize_v2.dart @@ -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/) - 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); }