mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-06-02 14:38:20 +08:00
Merge pull request #21698 from peterblazejewicz/update/auth0-js
Update contract for Auth0DecodedHash of auth0-js
This commit is contained in:
8
types/auth0-js/index.d.ts
vendored
8
types/auth0-js/index.d.ts
vendored
@@ -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. */
|
||||
|
||||
Reference in New Issue
Block a user