Documentation ¶
Index ¶
- Constants
- func ForgeAuthPair(guid string) (*models.AuthTokenPair, error)
- func ParseTokenFromRequest(c *gin.Context, key string) (*jwt.Token, error)
- func ProduceBcrypt(tokenStr string) ([]byte, error)
- func TakeSignature(jwtStr string) string
- func VerifyRefreshToken(refToken *jwt.Token, accToken *jwt.Token, rightHash []byte) error
Constants ¶
View Source
const ( ACCESS_TOKEN_LIFETIME = time.Minute * 30 REFRESH_TOKEN_LIFETIME = time.Minute * 120 )
Variables ¶
This section is empty.
Functions ¶
func ForgeAuthPair ¶
func ForgeAuthPair(guid string) (*models.AuthTokenPair, error)
func ParseTokenFromRequest ¶
func ProduceBcrypt ¶
func TakeSignature ¶
func VerifyRefreshToken ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.