You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
11 lines
228 B
Go
11 lines
228 B
Go
2 years ago
|
package sjwt
|
||
|
|
||
|
import "github.com/golang-jwt/jwt/v4"
|
||
|
|
||
|
type JWTClaims struct {
|
||
|
*jwt.RegisteredClaims
|
||
|
Type string `json:"type,omitempty"`
|
||
|
Roles []string `json:"roles,omitempty"`
|
||
|
Scopes []string `json:"scopes,omitempty"`
|
||
|
}
|