Skip to content

Commit

Permalink
Change validator's name
Browse files Browse the repository at this point in the history
  • Loading branch information
Gabriel Sanches committed Sep 4, 2018
1 parent 364eeb8 commit 6912d8f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions validators.go
Expand Up @@ -36,10 +36,10 @@ func AudienceValidator(aud string) ValidatorFunc {
}
}

// ExpirationValidator validates the "exp" claim.
func ExpirationValidator(now time.Time) ValidatorFunc {
// ExpirationTimeValidator validates the "exp" claim.
func ExpirationTimeValidator(now time.Time) ValidatorFunc {
return func(jot *JWT) error {
if exp := time.Unix(jot.Expiration, 0); now.After(exp) {
if exp := time.Unix(jot.ExpirationTime, 0); now.After(exp) {
return ErrExpValidation
}
return nil
Expand Down

0 comments on commit 6912d8f

Please sign in to comment.