Documentation
¶
Index ¶
- func ExchangeFacebookCodeForToken(clientID, clientSecret, code, redirectURL string) (string, string, error)
- func ExtractGoogleData(clientID, clientSecret, code, redirectURL string) (string, []byte, error)
- func GenerateJWTToken(tokenType TokenType, id primitive.ObjectID, secretKey string) (string, error)
- func GenerateToken() (string, error)
- func HashPassword(password string) (string, error)
- func ValidateJWTToken(expectedTokenType TokenType, signedToken, secretKey string) (primitive.ObjectID, error)
- func VerifyPassword(hashedPassword, password string) bool
- type TokenType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExtractGoogleData ¶
func GenerateJWTToken ¶
func GenerateToken ¶
func HashPassword ¶
func ValidateJWTToken ¶
func VerifyPassword ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.