added claims type
This commit is contained in:
parent
8e361f3156
commit
6e61945c2c
3 changed files with 64 additions and 8 deletions
|
|
@ -14,7 +14,7 @@ func TestValidate(t *testing.T) {
|
|||
if err != nil {
|
||||
t.Error(err)
|
||||
}
|
||||
token := NewToken(map[string]interface{}{
|
||||
token := NewToken(Claims{
|
||||
"sub": "1234567890",
|
||||
"name": "John Doe",
|
||||
"admin": true,
|
||||
|
|
@ -65,7 +65,7 @@ func TestNoBlacklist(t *testing.T) {
|
|||
if err != nil {
|
||||
t.Error(err)
|
||||
}
|
||||
token := NewToken(map[string]interface{}{
|
||||
token := NewToken(Claims{
|
||||
"sub": "1234567890",
|
||||
"name": "John Doe",
|
||||
"admin": true,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue