fix: correct returned field for JWTTokenRequest

JWTTokenRequest.GetIssuedAt() was returning the ExpiresAt field.
This change corrects that by returning IssuedAt instead.

This bug was introduced in #283
This commit is contained in:
Tim Möhlmann 2023-03-21 11:43:38 +02:00 committed by Tim Möhlmann
parent 115813ee38
commit a08ce50091

View file

@ -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