errors

package
v0.20.0 Latest Latest
Warning

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

Go to latest
Published: May 27, 2024 License: Apache-2.0 Imports: 1 Imported by: 7

Documentation

Index

Constants

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

Variables

This section is empty.

Functions

This section is empty.

Types

type ClearDuplicateSessionCookiesError added in v0.19.0

type ClearDuplicateSessionCookiesError struct {
	Msg string
}

func (ClearDuplicateSessionCookiesError) Error added in v0.19.0

type InvalidClaimError added in v0.9.0

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

func (InvalidClaimError) Error added in v0.9.0

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