Merge pull request #34583 from gemsotec/auth0-js-error-description

[@types/auth0-js] add missing error_description field
This commit is contained in:
Benjamin Lichtman
2019-04-11 16:17:31 -07:00
committed by GitHub
+5 -2
View File
@@ -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;