mirror of
https://github.com/hanzoai/jose.git
synced 2026-09-24 17:00:01 +00:00
1.4 KiB
1.4 KiB
Class: JWKSTimeout
💗 Help the project
Support from the community to continue maintaining and improving this module is welcome. If you find the module useful, please consider supporting the project by becoming a sponsor.
Timeout was reached when retrieving the JWKS response.
Example
Checking thrown error is this one using a stable error code
if (err.code === 'ERR_JWKS_TIMEOUT') {
// ...
}
Example
Checking thrown error is this one using instanceof
if (err instanceof jose.errors.JWKSTimeout) {
// ...
}
Table of contents
Constructors
Properties
Accessors
Constructors
constructor
• new JWKSTimeout(message?)
Parameters
| Name | Type |
|---|---|
message? |
string |
Properties
code
• code: string = 'ERR_JWKS_TIMEOUT'
A unique error code for the particular error subclass.
message
• message: string = 'request timed out'
Accessors
code
• Static get code(): "ERR_JWKS_TIMEOUT"
A unique error code for the particular error subclass.
Returns
"ERR_JWKS_TIMEOUT"