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
Click to show internal directories.
Click to hide internal directories.