n8n-nodes-idb2b 1.2.0 → 1.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,15 +1,50 @@
|
|
|
1
1
|
export interface IDB2BLoginResponse {
|
|
2
2
|
data: {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
3
|
+
access_token: string;
|
|
4
|
+
token_type: string;
|
|
5
|
+
expires_in: number;
|
|
6
|
+
expires_at: number;
|
|
7
|
+
refresh_token: string;
|
|
8
8
|
user: {
|
|
9
9
|
id: string;
|
|
10
10
|
email: string;
|
|
11
|
-
|
|
11
|
+
email_confirmed_at?: string;
|
|
12
|
+
phone?: string;
|
|
13
|
+
confirmed_at?: string;
|
|
14
|
+
last_sign_in_at?: string;
|
|
15
|
+
app_metadata?: {
|
|
16
|
+
provider: string;
|
|
17
|
+
providers: string[];
|
|
18
|
+
};
|
|
19
|
+
user_metadata?: {
|
|
20
|
+
avatar_url?: string;
|
|
21
|
+
email: string;
|
|
22
|
+
email_verified?: boolean;
|
|
23
|
+
full_name?: string;
|
|
24
|
+
iss?: string;
|
|
25
|
+
name?: string;
|
|
26
|
+
organization_id?: string;
|
|
27
|
+
phone_verified?: boolean;
|
|
28
|
+
picture?: string;
|
|
29
|
+
provider_id?: string;
|
|
30
|
+
sub?: string;
|
|
31
|
+
};
|
|
32
|
+
identities?: Array<{
|
|
33
|
+
identity_id: string;
|
|
34
|
+
id: string;
|
|
35
|
+
user_id: string;
|
|
36
|
+
identity_data: any;
|
|
37
|
+
provider: string;
|
|
38
|
+
last_sign_in_at: string;
|
|
39
|
+
created_at: string;
|
|
40
|
+
updated_at: string;
|
|
41
|
+
email: string;
|
|
42
|
+
}>;
|
|
43
|
+
created_at?: string;
|
|
44
|
+
updated_at?: string;
|
|
45
|
+
is_anonymous?: boolean;
|
|
12
46
|
};
|
|
47
|
+
weak_password?: any;
|
|
13
48
|
};
|
|
14
49
|
}
|
|
15
50
|
export interface TokenCache {
|
|
@@ -137,7 +137,7 @@ async function getAccessToken(executeFunctions, credentials) {
|
|
|
137
137
|
},
|
|
138
138
|
json: true,
|
|
139
139
|
});
|
|
140
|
-
const accessToken = loginResponse.data.
|
|
140
|
+
const accessToken = loginResponse.data.access_token;
|
|
141
141
|
if (!accessToken) {
|
|
142
142
|
throw new Error('No access token received from authentication response');
|
|
143
143
|
}
|