Documentation ¶ Index ¶ func Encode(claims jwt.Claims, privateKey *rsa.PrivateKey) (string, error) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func Encode ¶ added in v0.16.0 func Encode(claims jwt.Claims, privateKey *rsa.PrivateKey) (string, error) Encode encodes the provided claims into a JWT token using the provided RSA private key. It returns the encoded JWT token as a string and any error encountered during the encoding process. The claims are signed using the RS256 signing method. Types ¶ This section is empty. Source Files ¶ View all Source files jwttoken.go Click to show internal directories. Click to hide internal directories.