|
|
@ -29,7 +29,7 @@ var ErrExpired = errors.New("Claims have already expired") |
|
|
|
var ErrWrongUser = errors.New("Key is not valid for this user") |
|
|
|
|
|
|
|
// ErrWrongPermissions is returned by CheckToken if the key cannot claim one or more of its permissions
|
|
|
|
var ErrWrongPermissions = errors.New("Key is not valid for this user") |
|
|
|
var ErrWrongPermissions = errors.New("User does not have these permissions") |
|
|
|
|
|
|
|
// ErrDeletedUser is returned by CheckToken if the key can represent this user, but the user doesn't exist.
|
|
|
|
var ErrDeletedUser = errors.New("User was not found") |
|
|
|