Feat/implement-refresh-tokens (#9233)

This commit is contained in:
-LAN-
2024-10-12 23:46:30 +08:00
committed by GitHub
parent dbfbc56de7
commit f73751843f
10 changed files with 123 additions and 38 deletions

View File

@@ -183,7 +183,7 @@ def load_user_from_request(request_from_flask_login):
decoded = PassportService().verify(auth_token)
user_id = decoded.get("user_id")
logged_in_account = AccountService.load_logged_in_account(account_id=user_id, token=auth_token)
logged_in_account = AccountService.load_logged_in_account(account_id=user_id)
if logged_in_account:
contexts.tenant_id.set(logged_in_account.current_tenant_id)
return logged_in_account