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 177a0f4 commit 662f199Copy full SHA for 662f199
crates/axum-utils/src/user_authorization.rs
@@ -117,6 +117,11 @@ impl<F: Send> UserAuthorization<F> {
117
return Err(AuthorizationVerificationError::InvalidToken);
118
}
119
120
+ if !token.is_used() {
121
+ // Mark the token as used
122
+ repo.oauth2_access_token().mark_used(clock, token).await?;
123
+ }
124
+
125
Ok(session)
126
127
crates/handlers/src/oauth2/userinfo.rs
@@ -142,6 +142,8 @@ pub async fn get(
142
.await?
143
.ok_or(RouteError::NoSuchClient)?;
144
145
+ repo.save().await?;
146
147
if let Some(alg) = client.userinfo_signed_response_alg {
148
let key = key_store
149
.signing_key_for_algorithm(&alg)
0 commit comments