Skip to content

Commit

Permalink
Fix incorrect storing of expiration time
Browse files Browse the repository at this point in the history
Signed-off-by: Vui Lam <vui.lam@broadcom.com>
  • Loading branch information
vuil committed Oct 4, 2024
1 parent 1f25231 commit 5a37a8a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/auth/common/token.go
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 5a37a8a

Please sign in to comment.