Skip to content

Commit

Permalink
Fix JWT session refresh expiration. Fixes #629
Browse files Browse the repository at this point in the history
  • Loading branch information
plorenz committed Sep 26, 2024
1 parent dd7f9d8 commit 9b8c43b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion edge-apis/authwrapper.go
Original file line number Diff line number Diff line change
Expand Up @@ -614,7 +614,7 @@ func exchangeTokens(clientTransportPool ClientTransportPool, curTokens *oidc.Tok
AccessToken: tokenResponse.AccessToken,
TokenType: tokenResponse.TokenType,
RefreshToken: tokenResponse.RefreshToken,
Expiry: now.Add(time.Duration(tokenResponse.ExpiresIn)),
Expiry: now.Add(time.Second * time.Duration(tokenResponse.ExpiresIn)),
},
IDTokenClaims: &idClaims.IDTokenClaims,
IDToken: idResp.AccessToken, //access token field is used to hold id token per zitadel comments
Expand Down
2 changes: 1 addition & 1 deletion ziti/sdkinfo/build_info.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 9b8c43b

Please sign in to comment.