We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5ee9f9f commit 535666cCopy full SHA for 535666c
generates/jwt_access_test.go
@@ -6,7 +6,6 @@ import (
6
"time"
7
8
"github.com/dgrijalva/jwt-go"
9
-
10
"gopkg.in/oauth2.v3"
11
"gopkg.in/oauth2.v3/generates"
12
"gopkg.in/oauth2.v3/models"
@@ -45,7 +44,7 @@ func TestJWTAccess(t *testing.T) {
45
44
claims, ok := token.Claims.(*generates.JWTAccessClaims)
46
So(ok, ShouldBeTrue)
47
So(token.Valid, ShouldBeTrue)
48
- So(claims.ClientID, ShouldEqual, "123456")
49
- So(claims.UserID, ShouldEqual, "000000")
+ So(claims.Audience, ShouldEqual, "123456")
+ So(claims.Subject, ShouldEqual, "000000")
50
})
51
}
0 commit comments