package
4.10.0
Repository: https://github.com/laisky/go-utils.git
Documentation: pkg.go.dev

# Functions

New create new JWT utils.
ParseTokenWithoutValidate parse and get payload without validate jwt token.
WithDividePriKey set asymmetrical private key for each signning/verify.
WithDividePubKey set asymmetrical public key for each signning/verify.
WithDivideSecret set symmetric key for each signning/verify.
WithPriKeyByte set jwt asymmetrical private key.
WithPubKeyByte set jwt asymmetrical public key.
WithSecretByte set jwt symmetric signning key.
WithSignMethod set jwt signing method.

# Variables

SignMethodES256 use ES256 for jwt.
SignMethodHS256 use HS256 for jwt.
SignMethodRS256 use RSA-256 for jwt.

# Structs

Type is token utils that support HS256/ES256.

# Interfaces

JWT jwt tool to sign & parse(with/without verify) token.

# Type aliases

DivideOption options to use separate secret for every user in parsing/signing.
Option options to setup JWT.