mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-04 23:07:06 +00:00
Merge pull request #34583 from gemsotec/auth0-js-error-description
[@types/auth0-js] add missing error_description field
This commit is contained in:
Vendored
+5
-2
@@ -1,9 +1,10 @@
|
||||
// Type definitions for Auth0.js 8.11
|
||||
// Type definitions for Auth0.js 9.10
|
||||
// Project: https://github.com/auth0/auth0.js
|
||||
// Definitions by: Adrian Chia <https://github.com/adrianchia>
|
||||
// Matt Durrant <https://github.com/mdurrant>
|
||||
// Peter Blazejewicz <https://github.com/peterblazejewicz>
|
||||
// Bartosz Kotrys <https://github.com/bkotrys>
|
||||
// Mark Nelissen <https://github.com/marknelissen>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// TypeScript Version: 2.3
|
||||
|
||||
@@ -569,7 +570,9 @@ export type SpecErrorCodes =
|
||||
|
||||
export interface Auth0Error {
|
||||
error: LibErrorCodes | SpecErrorCodes | string;
|
||||
errorDescription: string;
|
||||
errorDescription?: string;
|
||||
// Auth0 is not consistent in the naming of the error description field
|
||||
error_description?: string;
|
||||
// Need to include non-intuitive error fields that Auth0 uses
|
||||
code?: string;
|
||||
description?: string;
|
||||
|
||||
Reference in New Issue
Block a user