Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type JsonWebTokenClaims ¶
type JsonWebTokenSecurity ¶
type JsonWebTokenSecurity struct {
Key []byte
}
func (*JsonWebTokenSecurity) Create ¶
func (j *JsonWebTokenSecurity) Create(c *JsonWebTokenClaims, exp int) (string, error)
Create generates a JSON Web Token (JWT) using the provided claims and expiration time. It returns the signed token as a string and an error if any.
Click to show internal directories.
Click to hide internal directories.