package
0.0.0-20241226083948-8269ab54aa91
Repository: https://github.com/yachnytskyi/golang-mongo-grpc.git
Documentation: pkg.go.dev

# Functions

GenerateJWTToken generates a JWT token with the provided UserTokenPayload, using the given private key, and sets the token's expiration based on the specified token lifetime.
ValidateJWTToken validates a JWT token using the provided public key and returns the claims extracted from the token if it's valid.