Feat/implement-refresh-tokens (#9233)

This commit is contained in:
-LAN- 2024-10-12 23:46:30 +08:00 • committed by GitHub
commit f73751843f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
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