package
0.0.0-20250322183500-934bfd50bf90
Repository: https://github.com/infomark-org/infomark.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author

# Functions

CheckPasswordHash tests whether a given plainPassword matches the securely hashed one.
ErrUnauthenticatedWithDetails renders status 401 Unauthorized with custom error message.
ErrUnauthorizedWithDetails renders status 403 Unauthorized with custom error message.
GenerateToken generates a random string with a specific length.
HashPassword uses bcrypt to securely hash a plain password.

# Variables

The list of jwt token errors presented to the end user.
The list of jwt token errors presented to the end user.
The list of jwt token errors presented to the end user.
The list of jwt token errors presented to the end user.
ErrUnauthenticated means no credentials are given.
ErrUnauthorized returns status 403 Forbidden for unauthorized request.

# Structs

ErrResponse renderer type for handling all sorts of errors.