We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 37d1c85 commit 5f4d3a6Copy full SHA for 5f4d3a6
backend/open_webui/models/oauth_sessions.py
@@ -123,7 +123,11 @@ def create_session(
123
"user_id": user_id,
124
"provider": provider,
125
"token": self._encrypt_token(token),
126
- "expires_at": token.get("expires_at"),
+ "expires_at": token.get("expires_at") or (
127
+ int(token.get("issued_at", current_time) + token.get("id_token_expires_in", 3600))
128
+ if token.get("id_token_expires_in")
129
+ else current_time + 3600
130
+ ),
131
"created_at": current_time,
132
"updated_at": current_time,
133
}
0 commit comments