Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CustomToken ¶
type CustomToken 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
Click to show internal directories.
Click to hide internal directories.