1
0
mirror of https://github.com/matrix-org/matrix-authentication-service.git synced 2025-11-20 12:02:22 +03:00

data-model: make the access token expiration optional

This commit is contained in:
Quentin Gliech
2023-09-11 11:16:12 +02:00
parent 83ca90ee3d
commit e6b91c1ce4
6 changed files with 79 additions and 18 deletions

View File

@@ -209,7 +209,7 @@ pub(crate) async fn post(
client_id: Some(session.client_id.to_string()),
username,
token_type: Some(OAuthTokenTypeHint::AccessToken),
exp: Some(token.expires_at),
exp: token.expires_at,
iat: Some(token.created_at),
nbf: Some(token.created_at),
sub,