package
0.0.0-20240927215715-eb89d848c8c9
Repository: https://github.com/arrayoflilly/chirp.git
Documentation: pkg.go.dev
# Functions
CheckPasswordHash checks if a given password matches a bcrypt hash.
GetApiKey retrieves the API key from the Authorization header.
GetBearerToken retrieves the bearer token from the Authorization header.
HashPassword generates a bcrypt hash from a given password.
MakeJWT generates a JSON Web Token (JWT) for a given user ID, token secret, and expiration duration.
MakeRefreshToken generates a cryptographically secure random refresh token.
ValidateJWT validates a JSON Web Token (JWT) and returns the user ID.
# Constants
No description provided by the author
# Variables
No description provided by the author
No description provided by the author
# Type aliases
No description provided by the author