Skip to content

Commit

Permalink
Simplify statement
Browse files Browse the repository at this point in the history
  • Loading branch information
cgostuff committed Dec 14, 2021
1 parent bcd3360 commit 1a3d654
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion oidc/verify.go
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ func (v *IDTokenVerifier) Verify(ctx context.Context, rawIDToken string) (*IDTok

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

0 comments on commit 1a3d654

Please sign in to comment.