package
0.0.0-20191110003957-35ac193dfecd
Repository: https://github.com/codelympicsdev/api.git
Documentation: pkg.go.dev

# Functions

DoesHashMatch checks if the hash matches the password.
DoesPasswordMatch checks if the hashed stored password and the supplied plain text password match.
GenerateOTP creates an OTP secret for the user.
HashPassword takes a password and hashes it.
IsOTPValid checks if OTP is valid.
NewToken from user and scopes.
SigninEmailPassword gets a user with a certain email and checks their password.
Signup a new user.
TokenFromHeader gets a token from the HTTP Authorization header.
Validate a token.

# Constants

Issuer is the issuer of the JWT token.
Validity is how long a key is valid.

# Variables

ErrHeaderStructureIncorrect means an incorrectly formatter error.
PublicKey used to verify tokens.

# Structs

Token is the structure for the JWT token.