From 2b65f71239b6580bac832207c03759855b445aab Mon Sep 17 00:00:00 2001 From: Mark Nelissen Date: Tue, 9 Apr 2019 14:43:32 +0200 Subject: [PATCH 1/2] add missing error_description field --- types/auth0-js/index.d.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/types/auth0-js/index.d.ts b/types/auth0-js/index.d.ts index ac2d32c5ac..cc36dd5a36 100644 --- a/types/auth0-js/index.d.ts +++ b/types/auth0-js/index.d.ts @@ -569,7 +569,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; From 149903af27c4de8cfa2ae66f78d8de3296ce6250 Mon Sep 17 00:00:00 2001 From: Mark Nelissen Date: Tue, 9 Apr 2019 14:48:14 +0200 Subject: [PATCH 2/2] update version and contributor --- types/auth0-js/index.d.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/types/auth0-js/index.d.ts b/types/auth0-js/index.d.ts index cc36dd5a36..9c01bd4402 100644 --- a/types/auth0-js/index.d.ts +++ b/types/auth0-js/index.d.ts @@ -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 // Matt Durrant // Peter Blazejewicz // Bartosz Kotrys +// Mark Nelissen // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3