Skip to content

Commit eaa2167

Browse files
committed
[FIX] fastapi_auth_jwt: correct the returned env object
1 parent 70768ba commit eaa2167

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

fastapi_auth_jwt/dependencies.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ def __call__(
234234
request, response, authorization_header, validator
235235
)
236236
uid = validator._get_and_check_uid(payload)
237-
return odoo_env(user=uid)
237+
return env(user=uid)
238238

239239

240240
auth_jwt_authenticated_payload = AuthJwtPayload()

0 commit comments

Comments
 (0)