added claims type

This commit is contained in:
ston1th 2018-09-12 23:14:09 +02:00
commit 6e61945c2c
3 changed files with 64 additions and 8 deletions

View file

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