package
0.0.0-20240603104104-69b3fdba082c
Repository: https://github.com/akinolaemmanuel49/memo-api.git
Documentation: pkg.go.dev

# Functions

ContextGetUser returns the current user data stored in the request context.
ContextSetUser saves the given user data in the request context.
GenerateTokens generates both the detailed token and refresh token.
HandleErrorResponse returns an error with the specified status code and message as the response.
HandleInternalServerError logs the error and sends a generic 500 error response to the client.
HandleLogicalDeleteError returns an error with status of 404 and the data of the deleted instance as the response.
HandleValidationError is a shortcut to HandleErrorResponse with a status of 422.
HashPassword is used to encrypt the password before it is stored in the repository.
ValidateToken validates the provided JWT.
VerifyPassword checks the inputted plaintext password against the password hash in the repository.

# Constants

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

# Variables

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

# Type aliases

No description provided by the author