diff --git a/pkg/auth/common/token.go b/pkg/auth/common/token.go index 6a4141a49..901d09ef9 100644 --- a/pkg/auth/common/token.go +++ b/pkg/auth/common/token.go @@ -97,7 +97,7 @@ func GetToken(g *types.GlobalServerAuth, tokenGetter func(refreshOrAPIToken, acc g.RefreshToken = token.RefreshToken g.AccessToken = token.AccessToken g.IDToken = token.IDToken - expiration := time.Now().Local().Add(time.Duration(token.ExpiresIn)) + expiration := time.Now().Local().Add(time.Duration(token.ExpiresIn) * time.Second) g.Expiration = expiration g.Permissions = claims.Permissions