token

package
v4.0.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CustomToken

type CustomToken interface{}

type Manager

type Manager interface {
	CreateToken(key PayLoad) (token CustomToken, err error)
	VerifyToken(token CustomToken, key PayLoad) (err error)
}

Token.Manager interface is an API for creating and verifying tokens

func NewJWTTokenService

func NewJWTTokenService(data blockchain.OrganizationMetaData) Manager

This will be used in components as a service to Create and Validate tokens

type PayLoad

type PayLoad interface{}

Jump to

Keyboard shortcuts

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