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.
auth2/shared/sjwt/claims.go

11 lines
228 B
Go

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"`
}