Skip to content

Commit

Permalink
removed validation of the access attribute as this is a setting that …
Browse files Browse the repository at this point in the history
…only the server

should be validating.
  • Loading branch information
aricart committed Oct 20, 2018
1 parent af7d2f8 commit a91fd53
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions types.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package jwt

import (
"errors"
"fmt"
)

Expand All @@ -12,13 +11,6 @@ type Account struct {
}

func (a *Account) Valid() error {
if a.Access == "" {
return errors.New("account jwts require an access token")
}
if _, err := DecodeActivationClaims(a.Access); err != nil {
return fmt.Errorf("access is not valid: %v", err)
}

if err := a.Imports.Valid(); err != nil {
return err
}
Expand Down

0 comments on commit a91fd53

Please sign in to comment.