UNPKG

emailengine-client

Version:

A TypeScript client for the EmailEngine API

38 lines (37 loc) 855 B
/** * OAuth2 Configuration */ export declare class OAuth2 { /** * Return a redirect link to the OAuth2 consent screen */ 'authorize': boolean; /** * The user will be redirected to this URL after returning from the OAuth2 consent screen (only valid if authorize=true */ 'redirectUrl': string; /** * OAuth provider */ 'provider': string; 'auth': { /** * Account username */ user: string; /** * Shared mailbox username (MS365 only) */ delegatedUser: string; }; 'accessToken': string; 'refreshToken': string; /** * Outloook account type. Either 'consumers', 'organizations', 'common' or an organizartion ID */ 'authority': string; /** * Token expiration date */ 'expires': string; }