Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Fix requestOpenIdToken response: integer expires_in #10175

Merged
merged 2 commits into from
Jun 16, 2021
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions changelog.d/10175.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Return an integer `expires_in` in requestOpenIdToken response.
richvdh marked this conversation as resolved.
Show resolved Hide resolved
2 changes: 1 addition & 1 deletion synapse/rest/client/v2_alpha/openid.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ async def on_POST(self, request, user_id):
"access_token": token,
"token_type": "Bearer",
"matrix_server_name": self.server_name,
"expires_in": self.EXPIRES_MS / 1000,
"expires_in": self.EXPIRES_MS // 1000,
},
)

Expand Down