[#6529] added default leeway for the id_token checks

This commit is contained in:
Gani Georgiev committed 2025-02-24 11:45:59 +02:00
1 parent 653f2d8b16
commit 4155f50fe1
32 files changed
+60 -36

No files matched your search

+1
View File
@@ -141,6 +141,7 @@ func (p *Apple) parseAndVerifyIdToken(idToken string) (jwt.MapClaims, error) {
jwtValidator := jwt.NewValidator(
jwt.WithExpirationRequired(),
jwt.WithIssuedAt(),
jwt.WithLeeway(idTokenLeeway),
jwt.WithIssuer("https://appleid.apple.com"),
jwt.WithAudience(p.clientId),
)