1
0
mirror of https://github.com/matrix-org/matrix-authentication-service.git synced 2025-11-20 12:02:22 +03:00
This commit is contained in:
Quentin Gliech
2022-10-27 09:26:56 +02:00
parent b7c50b5403
commit 368a9282a1
4 changed files with 78 additions and 92 deletions

View File

@@ -193,7 +193,6 @@ pub(crate) async fn post(
let reply = match token_type {
TokenType::AccessToken => {
let (token, session) = lookup_active_access_token(&mut conn, token).await?;
let exp = token.exp();
IntrospectionResponse {
active: true,
@@ -201,7 +200,7 @@ pub(crate) async fn post(
client_id: Some(session.client.client_id),
username: Some(session.browser_session.user.username),
token_type: Some(OAuthTokenTypeHint::AccessToken),
exp: Some(exp),
exp: Some(token.expires_at),
iat: Some(token.created_at),
nbf: Some(token.created_at),
sub: Some(session.browser_session.user.sub),