package
0.0.0-20240923064848-08c5b1d65131
Repository: https://github.com/prawirdani/golang-restapi.git
Documentation: pkg.go.dev
# Functions
GenerateJWT generates a new Json Web Token containing the given payload.
GenerateRefreshToken generates a random 32 bytes for refresh token.
GetContext retrieves the access token payload from the context.
No description provided by the author
SetContext sets the access token payload to the context.
ValidateJWT decodes the given JWT string and returns the map payload.
# Constants
Used as token cookie name and response body key.
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
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