Skip to content

Commit

Permalink
Merge pull request #630 from openziti/fix-jwt-session-expiry
Browse files Browse the repository at this point in the history
Fix JWT session refresh expiration. Fixes #629
  • Loading branch information
plorenz authored Sep 30, 2024
2 parents dd7f9d8 + 9b8c43b commit c58c90b
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 c58c90b

Please sign in to comment.