jwt

package
v0.0.0-...-2d8e61d Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

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