Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PrivateToken ¶
type PrivateToken struct { PublicToken // contains filtered or unexported fields }
func New ¶
func New(privateKeyByte, publicKeyByte []byte) (*PrivateToken, error)
func (*PrivateToken) Encode ¶
func (srv *PrivateToken) Encode(userIssues string, up myctx.JwtProfile, ut string) (string, error)
type PublicToken ¶
type PublicToken struct {
// contains filtered or unexported fields
}
Token jwt
func NewPublic ¶
func NewPublic(publicKeyByte []byte) (*PublicToken, error)
func (*PublicToken) Decode ¶
func (srv *PublicToken) Decode(tokenStr string) (*myctx.JwtCustomClaims, error)
Decode 解码
Click to show internal directories.
Click to hide internal directories.