errors

package
v0.0.0-...-b59dafb Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2023 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	UnauthorizedErrorStr       = "UNAUTHORISED"
	TryRefreshTokenErrorStr    = "TRY_REFRESH_TOKEN"
	TokenTheftDetectedErrorStr = "TOKEN_THEFT_DETECTED"
	InvalidClaimsErrorStr      = "INVALID_CLAIMS"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type InvalidClaimError

type InvalidClaimError struct {
	Msg           string
	InvalidClaims []claims.ClaimValidationError
}

func (InvalidClaimError) Error

func (err InvalidClaimError) Error() string

type TokenTheftDetectedError

type TokenTheftDetectedError struct {
	Msg     string
	Payload TokenTheftDetectedErrorPayload
}

TokenTheftDetectedError used for when token theft has happened for a session

func (TokenTheftDetectedError) Error

func (err TokenTheftDetectedError) Error() string

type TokenTheftDetectedErrorPayload

type TokenTheftDetectedErrorPayload struct {
	SessionHandle string
	UserID        string
}

type TryRefreshTokenError

type TryRefreshTokenError struct {
	Msg string
}

TryRefreshTokenError used for when the refresh API needs to be called

func (TryRefreshTokenError) Error

func (err TryRefreshTokenError) Error() string

type UnauthorizedError

type UnauthorizedError struct {
	Msg         string
	ClearTokens *bool
}

UnauthorizedError used for when the user has been logged out

func (UnauthorizedError) Error

func (err UnauthorizedError) Error() string

Jump to

Keyboard shortcuts

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