apperrors

package
v0.0.0-...-dad66ff Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrAccountAlreadyExist             = errors.New("account with given email or username already exist")
	ErrAccountNotFound                 = errors.New("account not found")
	ErrAccountNotArchived              = errors.New("account cannot be archived")
	ErrAccountIncorrectEmailOrPassword = errors.New("incorrect email or password")
	ErrAccountPasswordNotGenerated     = errors.New("password generation error")
	ErrAccountIncorrectPassword        = errors.New("incorrect password")
	ErrAccountContextNotFound          = errors.New("account not found in context")
)
View Source
var (
	ErrAuthAccessDenied          = errors.New("access denied")
	ErrAuthProviderNotFound      = errors.New("provider query parameter is missing")
	ErrAuthGitHubUserNotReceived = errors.New("cannot receive user from github api")
)
View Source
var (
	ErrCSRFTokenPublicNotFound = errors.New("csrf token not found in request headers or query")
	ErrCSRFTokenCookieNotFound = errors.New("csrf token not found in cookies")
	ErrCSRFDetected            = errors.New("csrf tokens in headers and cookies are not the same")
)
View Source
var (
	ErrSessionNotFound        = errors.New("session not found")
	ErrSessionExpired         = errors.New("session expired")
	ErrSessionNotCreated      = errors.New("error occured during session creation")
	ErrSessionNotTerminated   = errors.New("current session cannot be terminated, use logout instead")
	ErrSessionDeviceMismatch  = errors.New("device doesn't match with device of current session")
	ErrSessionContextNotFound = errors.New("session not found in context")
)

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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