Merge branch 'main' into storefront-nuxt

This commit is contained in:
Egor Pavlovich Gorbunov 2025-11-12 12:56:27 +03:00
commit d791cbb83a

View file

@ -36,7 +36,7 @@ class JWTAuthMiddleware(BaseMiddleware):
class _Req:
def __init__(self, token_str: str):
self.META = {"HTTP_AUTHORIZATION": f"Bearer {token_str}"}
self.META = {"HTTP_X_EVIBES_AUTH": f"Bearer {token_str}"}
user, _ = jwt_auth.authenticate(_Req(token)) # type: ignore[arg-type]
scope["user"] = user