Skip to content

Commit c24479d

Browse files
committed
Improve ID token error message with details
1 parent 6c45719 commit c24479d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/webserver/oidc.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ impl OidcState {
208208
let nonce_verifier = |nonce: Option<&Nonce>| check_nonce(nonce, state);
209209
let claims: OidcClaims = id_token
210210
.into_claims(&verifier, nonce_verifier)
211-
.with_context(|| format!("Could not verify the ID token"))?;
211+
.map_err(|e| anyhow::anyhow!("Could not verify the ID token: {}", e))?;
212212
Ok(claims)
213213
}
214214
}

0 commit comments

Comments
 (0)