fix(middleware): exempt /api/auth/login/ from org context requirement
All checks were successful
Deploy Beta (NATIVE) / deploy (push) Successful in 1m54s

This commit is contained in:
vickytechkey 2026-10-24 15:16:40 +05:30
parent a2892a3cda
commit 831b08eabd
2 changed files with 2 additions and 0 deletions

View file

@ -58,6 +58,7 @@ class GetProfileAndOrg:
def process_request(self, request):
# Skip JWT validation for authentication endpoints that don't need org context
auth_skip_paths = [
"/api/auth/login/",
"/api/auth/google/",
"/api/auth/refresh-token/",
"/api/auth/me/",

View file

@ -45,6 +45,7 @@ class RequireOrgContext:
# Paths that don't require org context
EXEMPT_PATHS = [
"/api/auth/login/",
"/api/auth/refresh-token/",
"/api/auth/me/",
"/api/auth/switch-org/",