From f07b912d2c685fa24436f0dc4801fa8b31d4e594 Mon Sep 17 00:00:00 2001 From: Maxim Fominykh Date: Sat, 11 Jan 2020 05:18:58 +0500 Subject: [PATCH] Duration order consistency when multiplying number by time unit --- autorest/adal/token.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autorest/adal/token.go b/autorest/adal/token.go index 33bbd6ea1..566e13d0e 100644 --- a/autorest/adal/token.go +++ b/autorest/adal/token.go @@ -248,7 +248,7 @@ func (secret *ServicePrincipalCertificateSecret) SignJwt(spt *ServicePrincipalTo "sub": spt.inner.ClientID, "jti": base64.URLEncoding.EncodeToString(jti), "nbf": time.Now().Unix(), - "exp": time.Now().Add(time.Hour * 24).Unix(), + "exp": time.Now().Add(24 * time.Hour).Unix(), } signedString, err := token.SignedString(secret.PrivateKey)