mirror of
https://github.com/open-webui/open-webui.git
synced 2026-08-28 05:27:35 +00:00
refac
This commit is contained in:
parent
1ea54c3217
commit
74ae177d79
1 changed files with 3 additions and 1 deletions
|
|
@ -203,7 +203,7 @@ async def get_session_user(
|
|||
|
||||
user_permissions = await get_permissions(user.id, request.app.state.config.USER_PERMISSIONS, db=db)
|
||||
|
||||
return {
|
||||
response_data = {
|
||||
'token': token,
|
||||
'token_type': 'Bearer',
|
||||
'expires_at': expires_at,
|
||||
|
|
@ -221,6 +221,8 @@ async def get_session_user(
|
|||
'permissions': user_permissions,
|
||||
}
|
||||
|
||||
return response_data
|
||||
|
||||
|
||||
############################
|
||||
# Update Profile
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue