Documentation ¶ Index ¶ Variables type Module func New() *Module func (m *Module) Decode(ctx context.Context, compact string) (interface{}, error) func (m *Module) Sign(ctx context.Context, key *jose.JSONWebKey, ...) (string, error) func (m *Module) Verify(ctx context.Context, compact string, keys ...interface{}) (interface{}, error) Constants ¶ This section is empty. Variables ¶ View Source var ErrUnsupportedKey = errors.New("unsupported key") Functions ¶ This section is empty. Types ¶ type Module ¶ type Module struct{} func New ¶ func New() *Module func (*Module) Decode ¶ func (m *Module) Decode(ctx context.Context, compact string) (interface{}, error) func (*Module) Sign ¶ func (m *Module) Sign(ctx context.Context, key *jose.JSONWebKey, payload, header map[string]interface{}) (string, error) func (*Module) Verify ¶ func (m *Module) Verify(ctx context.Context, compact string, keys ...interface{}) (interface{}, error) Source Files ¶ View all Source files jwt.go Click to show internal directories. Click to hide internal directories.