token

package
v3.1.8+incompatible Latest Latest
Warning

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

Go to latest
Published: Jun 1, 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 PayLoad

type PayLoad interface{}

type Service

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

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

func NewJWTTokenService

func NewJWTTokenService(data blockchain.OrganizationMetaData) Service

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

Jump to

Keyboard shortcuts

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