n4auth/node_modules/@azure/msal-common/dist/response/AuthenticationResult.d.ts

35 lines
1.6 KiB
TypeScript
Raw Normal View History

2021-07-15 20:10:20 +00:00
import { AccountInfo } from "../account/AccountInfo";
/**
* Result returned from the authority's token endpoint.
* - uniqueId - `oid` or `sub` claim from ID token
* - tenantId - `tid` claim from ID token
* - scopes - Scopes that are validated for the respective token
* - account - An account object representation of the currently signed-in user
* - idToken - Id token received as part of the response
* - idTokenClaims - MSAL-relevant ID token claims
* - accessToken - Access token received as part of the response
* - fromCache - Boolean denoting whether token came from cache
* - expiresOn - Javascript Date object representing relative expiration of access token
* - extExpiresOn - Javascript Date object representing extended relative expiration of access token in case of server outage
* - state - Value passed in by user in request
* - familyId - Family ID identifier, usually only used for refresh tokens
*/
export declare type AuthenticationResult = {
authority: string;
uniqueId: string;
tenantId: string;
scopes: Array<string>;
account: AccountInfo | null;
idToken: string;
idTokenClaims: object;
accessToken: string;
fromCache: boolean;
expiresOn: Date | null;
tokenType: string;
extExpiresOn?: Date;
state?: string;
familyId?: string;
cloudGraphHostName?: string;
msGraphHost?: string;
};
//# sourceMappingURL=AuthenticationResult.d.ts.map