Merge pull request #21698 from peterblazejewicz/update/auth0-js

Update contract for Auth0DecodedHash of auth0-js
This commit is contained in:
Armando Aguirre
2017-12-01 13:59:52 -08:00
committed by GitHub

View File

@@ -1,7 +1,8 @@
// Type definitions for Auth0.js 8.10
// Type definitions for Auth0.js 8.11
// 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>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
export as namespace auth0;
@@ -525,14 +526,19 @@ export interface Auth0Error {
statusText?: string;
}
/**
* The contents of the authResult object returned by {@link WebAuth#parseHash }
*/
export interface Auth0DecodedHash {
accessToken?: string;
idToken?: string;
idTokenPayload?: any;
appState?: any;
refreshToken?: string;
state?: string;
expiresIn?: number;
tokenType?: string;
scope?: string;
}
/** Represents the response from an API Token Delegation request. */