package
0.0.0-20230606142759-22fe104511c3
Repository: https://github.com/dbssensei/filesystem-api.git
Documentation: pkg.go.dev
# Functions
CheckPassword checks if the provided password is correct or not.
HashPassword returns the bcrypt hash of the password.
No description provided by the author
No description provided by the author
NewPayload creates a new tokens payload with a specific username and duration.
No description provided by the author
RandomInt generates a random integer between min and max.
RandomString generates a random string of length n.
No description provided by the author
No description provided by the author
# Variables
Different types of error returned by the VerifyToken function.
Different types of error returned by the VerifyToken function.
# Structs
JWTMaker is a JSON Web Token maker.
No description provided by the author
No description provided by the author
TokenPayload contains the payload data of the tokens.
# Interfaces
TokenMaker is an interface for managing tokens.