package
Version:
v0.0.0-...-aa13637
Opens a new window with list of versions in this module.
Published: Nov 19, 2020
License: AGPL-3.0
Opens a new window with license information.
Imports: 10
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
ParseUID get uid from a jwt
SignAccessToken signs a access token of a user
SignRefreshToken signs a refresh token of a user
type TokenPayload struct {
jwt.Payload
UID uint64 `json:"uid"`
Username string `json:"username"`
}
TokenPayload is a convented JWT Payload struct
Verify validate token with given key
Source Files
¶
Click to show internal directories.
Click to hide internal directories.