You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I see the struct in the path appstore/api have implement jwt.Claims, and these struct can just call jwt.ParseWithClaims. But the struct in the path appstore can only use jwt.Parse and we should write so many convert code to get data, such as
token:= jwt.Token{}
iferr:=client.ParseNotificationV2(tokenStr, &token); err!=nil {
t.Errorf("expected an error to be nil since the tokenStr is legal")
}
claims, ok:=token.Claims.(jwt.MapClaims)
if!ok {
t.Errorf("claim should be jwt.MapClaims")
}
The text was updated successfully, but these errors were encountered:
I see the struct in the path
appstore/api
have implement jwt.Claims, and these struct can just calljwt.ParseWithClaims
. But the struct in the pathappstore
can only usejwt.Parse
and we should write so many convert code to get data, such asThe text was updated successfully, but these errors were encountered: