mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2024-07-04 21:05:47 +00:00
98263a7de6
* start fixing up tests * fix up tests + automate with drone * fiddle with linting * messing about with drone.yml * some more fiddling * hmmm * add cache * add vendor directory * verbose * ci updates * update some little things * update sig
20 lines
702 B
Go
20 lines
702 B
Go
package errors
|
|
|
|
import "errors"
|
|
|
|
// New returns an error that formats as the given text.
|
|
var New = errors.New
|
|
|
|
// known errors
|
|
var (
|
|
ErrInvalidRedirectURI = errors.New("invalid redirect uri")
|
|
ErrInvalidAuthorizeCode = errors.New("invalid authorize code")
|
|
ErrInvalidAccessToken = errors.New("invalid access token")
|
|
ErrInvalidRefreshToken = errors.New("invalid refresh token")
|
|
ErrExpiredAccessToken = errors.New("expired access token")
|
|
ErrExpiredRefreshToken = errors.New("expired refresh token")
|
|
ErrMissingCodeVerifier = errors.New("missing code verifier")
|
|
ErrMissingCodeChallenge = errors.New("missing code challenge")
|
|
ErrInvalidCodeChallenge = errors.New("invalid code challenge")
|
|
)
|