errors

package
v0.0.0-...-7a2aee4 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrAccountNotActive = errors.New("user is not active")

ErrAccountNotActive is returned when a user attempts to perform an action, but their account is not active. This typically indicates that the user needs to activate their account before they can proceed.

View Source
var ErrEmailLinkedToOauth = errors.New("email associated with oauth account")

ErrEmailLinkedToOauth is returned when a user attempts to sign up or log in using an email that is already associated with an OAuth account. This error informs the user that they should use their OAuth provider to log in instead.

View Source
var ErrIncorrectPassword = errors.New("incorrect password")

ErrIncorrectPassword is returned when a user provides an incorrect password during authentication. This prevents unauthorized access to the account.

View Source
var ErrInvalidToken = errors.New("invalid jwt token")

ErrInvalidToken is returned when the provided JWT token is invalid. This could happen if the token is malformed, expired, or fails verification.

Functions

This section is empty.

Types

type ErrorResponse

type ErrorResponse struct {
	Status  string      `json:"status"`
	Message string      `json:"message"`
	Errors  interface{} `json:"errors,omitempty"`
}

ErrorResponse represents the structure of an error response. It includes a status, a message, and optionally additional error details.

Jump to

Keyboard shortcuts

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