-
-
Notifications
You must be signed in to change notification settings - Fork 123
Expand file tree
/
Copy pathindex.d.ts
More file actions
82 lines (47 loc) · 1.6 KB
/
index.d.ts
File metadata and controls
82 lines (47 loc) · 1.6 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
import { IAccessToken, IAuthenticationToken, ILoginResult } from './common';
export declare class FacebookError extends Error {
readonly native: any;
}
export declare class AccessToken implements IAccessToken {
readonly appID: string;
readonly dataAccessExpirationDate: Date;
readonly dataAccessExpired: boolean;
readonly declinedPermissions: string[];
readonly expirationDate: Date;
readonly expired: boolean;
readonly expiredPermissions: string[];
readonly graphDomain: string;
readonly permissions: string[];
readonly refreshDate: Date;
readonly tokenString: string;
readonly userID: string;
static currentAccessToken(): AccessToken;
static readonly currentAccessTokenIsActive: boolean;
readonly native;
readonly android;
readonly ios;
}
export declare class AuthenticationToken implements IAuthenticationToken {
readonly graphDomain: string;
readonly tokenString: string;
readonly nonce: string;
static currentAuthenticationToken(): AuthenticationToken;
readonly native;
readonly android;
readonly ios;
}
export declare class LoginResult implements ILoginResult {
readonly declinedPermissions: string[];
readonly grantedPermissions: string[];
readonly isCancelled: boolean;
readonly token: AccessToken;
readonly authenticationToken: AuthenticationToken;
readonly native;
readonly android;
readonly ios;
}
export declare class LoginManager implements ILoginManager {
static init();
static logInWithPermissions(permissions: string[], context?: any /* UIViewController to open from on iOS, Activity to open with on Android */): Promise<LoginResult>;
static logout();
}