Merge branch 'main' into storefront-nuxt
This commit is contained in:
commit
d791cbb83a
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue