//
pkg.gl
Category
github.com/MathisBurger/OpenInventory-Backend
accesstoken
package
0.0.5
Repository:
https://github.com/mathisburger/openinventory-backend.git
Documentation:
pkg.go.dev
Overview
Versions
1
Dependencies
9
Dependents
2
Files
114 SLOC
#
Functions
GenerateRefreshToken
This function generates a refresh token based on the username and the fiber context.
NewJWTManager
this functions generates a new Keypair for JWT signing.
#
Structs
JWTKeyPair
This implements the RSA keypair needed to sign JWT.
#
Interfaces
Generator
this interface provides the scheme to generate JWT access token.
Validator
this interface provides the scheme to validate JWT access token.