Documentation ¶
Index ¶
- func CheckEmail(word string) error
- func CheckPassword(word string) error
- func CheckUsername(word string) error
- func ExtractToken(r *http.Request) (string, error)
- func ExtractTokenMetaData(r *http.Request) (*models.TokenMetaData, error)
- func GenerateToken(id int) (*models.LoginResponse, error)
- func HashedPassword(password string) (string, error)
- func TokenValid(r *http.Request) (jwt.MapClaims, error)
- func VerifyPassword(hashedPassword string, candidatePassword string) error
- func VerifyToken(r *http.Request) (*jwt.Token, error)
- func VerifyUser(id int, r *http.Request) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckEmail ¶
func CheckPassword ¶
func CheckUsername ¶
func ExtractTokenMetaData ¶
func ExtractTokenMetaData(r *http.Request) (*models.TokenMetaData, error)
func GenerateToken ¶
func GenerateToken(id int) (*models.LoginResponse, error)
func HashedPassword ¶
func TokenValid ¶
func VerifyPassword ¶
func VerifyToken ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.