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

storage: do less joins on authorization grants and refresh tokens

This commit is contained in:
Quentin Gliech
2023-01-05 16:49:19 +01:00
parent 603a26eabd
commit fb7c6f4dd1
7 changed files with 140 additions and 149 deletions

View File

@@ -33,7 +33,7 @@ pub struct RefreshToken {
pub id: Ulid,
pub refresh_token: String,
pub created_at: DateTime<Utc>,
pub access_token: Option<AccessToken>,
pub access_token_id: Option<Ulid>,
}
/// Type of token to generate or validate