errors

package
v0.6.3 Latest Latest
Warning

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

Go to latest
Published: May 19, 2022 License: Apache-2.0 Imports: 0 Imported by: 7

Documentation

Index

Constants

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

Variables

This section is empty.

Functions

This section is empty.

Types

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
	ClearCookies *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