fix(middleware): exempt /api/auth/login/ from org context requirement
All checks were successful
Deploy Beta (NATIVE) / deploy (push) Successful in 1m54s
All checks were successful
Deploy Beta (NATIVE) / deploy (push) Successful in 1m54s
This commit is contained in:
parent
a2892a3cda
commit
831b08eabd
2 changed files with 2 additions and 0 deletions
|
|
@ -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/",
|
||||
|
|
|
|||
|
|
@ -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/",
|
||||
|
|
|
|||
Loading…
Reference in a new issue