Auth0-PHP

StateException extends Exception
in package
implements Auth0Exception

Tags
codeCoverageIgnore

Interfaces, Classes, Traits and Enums

Auth0Exception
Represents all errors generated by SDK itself.

Table of Contents

MSG_BAD_ACCESS_TOKEN  = 'Invalid access_token'
MSG_FAILED_CODE_EXCHANGE  = 'Code exchange was unsuccessful; network error resulted in unfulfilled request'
MSG_FAILED_RENEW_TOKEN_MISSING_ACCESS_TOKEN  = 'Token did not refresh successfully; access token was not returned'
MSG_FAILED_RENEW_TOKEN_MISSING_REFRESH_TOKEN  = 'Cannot renew access token; a refresh token is not available'
MSG_INVALID_STATE  = 'Invalid state'
MSG_MISSING_CODE  = 'Missing code'
MSG_MISSING_CODE_VERIFIER  = 'Missing code_verifier'
MSG_MISSING_NONCE  = 'Nonce was not found in the application storage'
badAccessToken()  : self
failedCodeExchange()  : self
failedRenewTokenMissingAccessToken()  : self
failedRenewTokenMissingRefreshToken()  : self
invalidState()  : self
missingCode()  : self
missingCodeVerifier()  : self
missingNonce()  : self

Constants

MSG_BAD_ACCESS_TOKEN

public mixed MSG_BAD_ACCESS_TOKEN = 'Invalid access_token'

MSG_FAILED_CODE_EXCHANGE

public mixed MSG_FAILED_CODE_EXCHANGE = 'Code exchange was unsuccessful; network error resulted in unfulfilled request'

MSG_FAILED_RENEW_TOKEN_MISSING_ACCESS_TOKEN

public mixed MSG_FAILED_RENEW_TOKEN_MISSING_ACCESS_TOKEN = 'Token did not refresh successfully; access token was not returned'

MSG_FAILED_RENEW_TOKEN_MISSING_REFRESH_TOKEN

public mixed MSG_FAILED_RENEW_TOKEN_MISSING_REFRESH_TOKEN = 'Cannot renew access token; a refresh token is not available'

MSG_INVALID_STATE

public mixed MSG_INVALID_STATE = 'Invalid state'

MSG_MISSING_CODE_VERIFIER

public mixed MSG_MISSING_CODE_VERIFIER = 'Missing code_verifier'

MSG_MISSING_NONCE

public mixed MSG_MISSING_NONCE = 'Nonce was not found in the application storage'

Methods

badAccessToken()

public static badAccessToken([Throwable|null $previous = null ]) : self
Parameters
$previous : Throwable|null = null
Return values
self

failedCodeExchange()

public static failedCodeExchange([Throwable|null $previous = null ]) : self
Parameters
$previous : Throwable|null = null
Return values
self

failedRenewTokenMissingAccessToken()

public static failedRenewTokenMissingAccessToken([Throwable|null $previous = null ]) : self
Parameters
$previous : Throwable|null = null
Return values
self

failedRenewTokenMissingRefreshToken()

public static failedRenewTokenMissingRefreshToken([Throwable|null $previous = null ]) : self
Parameters
$previous : Throwable|null = null
Return values
self

invalidState()

public static invalidState([Throwable|null $previous = null ]) : self
Parameters
$previous : Throwable|null = null
Return values
self

missingCode()

public static missingCode([Throwable|null $previous = null ]) : self
Parameters
$previous : Throwable|null = null
Return values
self

missingCodeVerifier()

public static missingCodeVerifier([Throwable|null $previous = null ]) : self
Parameters
$previous : Throwable|null = null
Return values
self

missingNonce()

public static missingNonce([Throwable|null $previous = null ]) : self
Parameters
$previous : Throwable|null = null
Return values
self

Search results