Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildSignedToken ¶
func BuildSignedToken(privateKey *rsa.PrivateKey, keyID string, claims TokenClaims) (string, error)
Types ¶
type TokenClaims ¶
type TokenClaims struct { UserID string `json:"userId"` Account string `json:"account"` Permissions models.Permissions `json:"permissions"` jwtgo.StandardClaims }
func ParseSignedToken ¶
func ParseSignedToken(tokenString string, publicKey *rsa.PublicKey) (*TokenClaims, error)
Click to show internal directories.
Click to hide internal directories.