Documentation
¶
Index ¶
- func HashPassword(password []byte, salt []byte) []byte
- func RefreshToken(id uint64) (token string, dbPart []byte)
- func Revoke(userId uint64)
- func Salt() []byte
- func SelfEncodeToken(id uint64, i interface{}) string
- func SetSelfEncodedTokenLifeTime(t time.Duration)
- func ValidateRefreshToken(token string) (id uint64, valid bool, dbPart []byte)
- type Token
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HashPassword ¶
func RefreshToken ¶
func SelfEncodeToken ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.