Documentation
¶
Index ¶
- func GetJWTPrivateKey() (*rsa.PrivateKey, error)
- func GetJWTPublicKey() (*rsa.PublicKey, error)
- func GetSignedTokenWithClaims(claims jwt.Claims) (string, error)
- func MakeCustomClaims(userId, sessionId string) jwt.Claims
- func ReadPrivateKey() []byte
- func ReadPublicKey() []byte
- func VerifyToken(token string) (*customClaims, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetJWTPrivateKey ¶
func GetJWTPrivateKey() (*rsa.PrivateKey, error)
func GetJWTPublicKey ¶
func MakeCustomClaims ¶
func ReadPrivateKey ¶
func ReadPrivateKey() []byte
ReadPrivateKey reads the private key from the environment variable or the file and returns as byte array
func ReadPublicKey ¶
func ReadPublicKey() []byte
ReadPublicKey reads the public key from the environment variable or the file and returns as byte array
func VerifyToken ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.