Documentation ¶
Index ¶
Constants ¶
View Source
const ( 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 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 {}
UnauthorizedError used for when the user has been logged out
func (UnauthorizedError) Error ¶
func (err UnauthorizedError) Error() string
Click to show internal directories.
Click to hide internal directories.