Skip to content

Commit 1a3d654

Browse files
committed
Simplify statement
1 parent bcd3360 commit 1a3d654

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

oidc/verify.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ func (v *IDTokenVerifier) Verify(ctx context.Context, rawIDToken string) (*IDTok
272272

273273
// Set to 5 minutes by default since this is what other OpenID Connect providers do to deal with clock skew.
274274
// https://github.com/AzureAD/azure-activedirectory-identitymodel-extensions-for-dotnet/blob/6.12.2/src/Microsoft.IdentityModel.Tokens/TokenValidationParameters.cs#L149-L153
275-
clockSkew := time.Duration(5) * time.Minute
275+
clockSkew := 5 * time.Minute
276276
if v.config.ClockSkew != nil {
277277
clockSkew = v.config.ClockSkew()
278278
}

0 commit comments

Comments
 (0)