jwt

package
v2.9.0 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2020 License: Apache-2.0 Imports: 5 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewTokenProvider

func NewTokenProvider(opts ...token.Option) token.Provider

NewTokenProvider returns an initialized basic provider

Types

type JWT

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

JWT implementation of token provider

func (*JWT) Generate

func (j *JWT) Generate(acc *auth.Account, opts ...token.GenerateOption) (*token.Token, error)

Generate a new JWT

func (*JWT) Inspect

func (j *JWT) Inspect(t string) (*auth.Account, error)

Inspect a JWT

func (*JWT) String

func (j *JWT) String() string

String returns JWT

Jump to

Keyboard shortcuts

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