-
Notifications
You must be signed in to change notification settings - Fork 53
/
index.d.ts
19 lines (15 loc) · 1.09 KB
/
index.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import * as TnsOAuth from './tns-oauth-interfaces';
export * from './tns-oauth-interfaces';
export declare var instance: TnsOAuth.ITnsAuthHelper;
export declare function initOffice365(options: TnsOAuth.ITnsOAuthOptionsOffice365): Promise<any>;
export declare function initFacebook(options: TnsOAuth.ITnsOAuthOptionsFacebook): Promise<any>;
export declare function initGoogle(options: TnsOAuth.ITnsOAuthOptionsGoogle): Promise<any>;
export declare function initUaa(options: TnsOAuth.ITnsOAuthOptionsUaa): Promise<any>;
export declare function initLinkedIn(options: TnsOAuth.ITnsOAuthOptionsLinkedIn): Promise<any>;
export declare function initSalesforce(options: TnsOAuth.ITnsOAuthOptionsSalesforce): Promise<any>;
export declare function initCustom(options: TnsOAuth.ITnsOAuthOptionsCustom): Promise<any>;
export declare function accessToken(): string;
export declare function login(successPage?: string): Promise<string>;
export declare function logout(successPage?: string): Promise<void>;
export declare function accessTokenExpired(): boolean;
export declare function ensureValidToken(): Promise<string>;