TokenVerificationError

API reference for the TokenVerificationError method.

This API is a preview. Preview APIs are unstable and may change without warning. You can't release public apps using this API until it's stable.

Base class for all token verification errors. All token verification errors extend this class.

Constructors

constructorfunction
Required

Constructor

Parameters

messagestring
Required
codeErrorCode
Required

An error code that identifies why an error was thrown by the app middleware.

Available values:

  • "TOKEN_MISSING"
  • "TOKEN_EXPIRED"
  • "TOKEN_INVALID"
statusCodenumber
Required

Properties

codeErrorCodeRead-only
Required

Machine-readable error code

Available values:

  • "TOKEN_MISSING"
  • "TOKEN_EXPIRED"
  • "TOKEN_INVALID"
statusCodenumberRead-only
Required

HTTP status code to use when responding to the client

Methods

[hasInstance]function
Required

Parameters

instanceunknown
Required

Returns

instance is TokenVerificationError