package
Version:
v1.0.0
Opens a new window with list of versions in this module.
Published: Apr 6, 2021
License: MIT
Opens a new window with license information.
Imports: 9
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
ErrUnauthorized API no auth error
New returns an auth service implementation
AuthMock mock of auth service
Authenticate mock of auth service
GetToken mock of auth service
Validate mock of auth service
type Credentials struct {
AccessToken string `json:"access_token"`
TokenType string `json:"token_type"`
Scope string `json:"scope"`
ExpiresIn int `json:"expires_in"`
}
Credentials describes the API credential type
Service describes the auth service abstraction
Source Files
¶
Click to show internal directories.
Click to hide internal directories.