jwtsigner

package
v0.24.334 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2023 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IdentitySigner

type IdentitySigner struct {
	// contains filtered or unexported fields
}

func New

func New(issuer string, sm jwt.SigningMethod, key interface{}) *IdentitySigner

func (*IdentitySigner) Generate

func (j *IdentitySigner) Generate(subj, jti string, claims jwt.MapClaims) (string, error)

type Signer

type Signer interface {
	Generate(string, string, jwt.MapClaims) (string, error)
}

Jump to

Keyboard shortcuts

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