Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewAccessToken ¶
func NewAccessToken(claims UserClaims) (string, error)
func NewRefreshToken ¶
func ParseRefreshToken ¶
func ParseRefreshToken(refreshToken string) *jwt.RegisteredClaims
func SendCodeByQQEmail ¶
Types ¶
type UserClaims ¶
type UserClaims struct { Id uuid.UUID `json:"id"` Email string `json:"email"` Password string `json:"password"` jwt.RegisteredClaims }
func ParseAccessToken ¶
func ParseAccessToken(accessToken string) *UserClaims
Click to show internal directories.
Click to hide internal directories.