jwttoken

package
v0.16.0-rc.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 15, 2024 License: Apache-2.0 Imports: 2 Imported by: 1

Documentation

Index

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL