Skip to content

Commit

Permalink
fix: correct returned field for JWTTokenRequest
Browse files Browse the repository at this point in the history
JWTTokenRequest.GetIssuedAt() was returning the ExpiresAt field.
This change corrects that by returning IssuedAt instead.

This bug was introduced in #283
  • Loading branch information
muhlemmer committed Mar 21, 2023
1 parent 7a49693 commit 522f656
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/oidc/token_request.go
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ func (j *JWTTokenRequest) GetExpiration() time.Time {

// GetIssuedAt implements the Claims interface
func (j *JWTTokenRequest) GetIssuedAt() time.Time {
return j.ExpiresAt.AsTime()
return j.IssuedAt.AsTime()
}

// GetNonce implements the Claims interface
Expand Down

0 comments on commit 522f656

Please sign in to comment.