@supabase/gotrue-js 2.39.2 → 2.40.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.
- package/dist/main/GoTrueAdminApi.js +164 -193
- package/dist/main/GoTrueAdminApi.js.map +1 -1
- package/dist/main/GoTrueClient.js +1038 -1133
- package/dist/main/GoTrueClient.js.map +1 -1
- package/dist/main/lib/fetch.js +51 -66
- package/dist/main/lib/fetch.js.map +1 -1
- package/dist/main/lib/helpers.js +28 -41
- package/dist/main/lib/helpers.js.map +1 -1
- package/dist/main/lib/version.d.ts +1 -1
- package/dist/main/lib/version.js +1 -1
- package/dist/module/GoTrueAdminApi.js +164 -193
- package/dist/module/GoTrueAdminApi.js.map +1 -1
- package/dist/module/GoTrueClient.js +1038 -1133
- package/dist/module/GoTrueClient.js.map +1 -1
- package/dist/module/lib/fetch.js +51 -66
- package/dist/module/lib/fetch.js.map +1 -1
- package/dist/module/lib/helpers.js +28 -41
- package/dist/module/lib/helpers.js.map +1 -1
- package/dist/module/lib/version.d.ts +1 -1
- package/dist/module/lib/version.js +1 -1
- package/package.json +1 -1
- package/src/lib/version.ts +1 -1
|
@@ -1,13 +1,4 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
-
});
|
|
10
|
-
};
|
|
11
2
|
var __rest = (this && this.__rest) || function (s, e) {
|
|
12
3
|
var t = {};
|
|
13
4
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
@@ -38,46 +29,42 @@ class GoTrueAdminApi {
|
|
|
38
29
|
* @param jwt A valid, logged-in JWT.
|
|
39
30
|
* @param scope The logout sope.
|
|
40
31
|
*/
|
|
41
|
-
signOut(jwt, scope = 'global') {
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
return { data: null, error };
|
|
54
|
-
}
|
|
55
|
-
throw error;
|
|
32
|
+
async signOut(jwt, scope = 'global') {
|
|
33
|
+
try {
|
|
34
|
+
await (0, fetch_1._request)(this.fetch, 'POST', `${this.url}/logout?scope=${scope}`, {
|
|
35
|
+
headers: this.headers,
|
|
36
|
+
jwt,
|
|
37
|
+
noResolveJson: true,
|
|
38
|
+
});
|
|
39
|
+
return { data: null, error: null };
|
|
40
|
+
}
|
|
41
|
+
catch (error) {
|
|
42
|
+
if ((0, errors_1.isAuthError)(error)) {
|
|
43
|
+
return { data: null, error };
|
|
56
44
|
}
|
|
57
|
-
|
|
45
|
+
throw error;
|
|
46
|
+
}
|
|
58
47
|
}
|
|
59
48
|
/**
|
|
60
49
|
* Sends an invite link to an email address.
|
|
61
50
|
* @param email The email address of the user.
|
|
62
51
|
* @param options Additional options to be included when inviting.
|
|
63
52
|
*/
|
|
64
|
-
inviteUserByEmail(email, options = {}) {
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
return { data: { user: null }, error };
|
|
77
|
-
}
|
|
78
|
-
throw error;
|
|
53
|
+
async inviteUserByEmail(email, options = {}) {
|
|
54
|
+
try {
|
|
55
|
+
return await (0, fetch_1._request)(this.fetch, 'POST', `${this.url}/invite`, {
|
|
56
|
+
body: { email, data: options.data },
|
|
57
|
+
headers: this.headers,
|
|
58
|
+
redirectTo: options.redirectTo,
|
|
59
|
+
xform: fetch_1._userResponse,
|
|
60
|
+
});
|
|
61
|
+
}
|
|
62
|
+
catch (error) {
|
|
63
|
+
if ((0, errors_1.isAuthError)(error)) {
|
|
64
|
+
return { data: { user: null }, error };
|
|
79
65
|
}
|
|
80
|
-
|
|
66
|
+
throw error;
|
|
67
|
+
}
|
|
81
68
|
}
|
|
82
69
|
/**
|
|
83
70
|
* Generates email links and OTPs to be sent via a custom email provider.
|
|
@@ -86,58 +73,54 @@ class GoTrueAdminApi {
|
|
|
86
73
|
* @param options.data Optional user metadata. For signup only.
|
|
87
74
|
* @param options.redirectTo The redirect url which should be appended to the generated link
|
|
88
75
|
*/
|
|
89
|
-
generateLink(params) {
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
delete body['newEmail'];
|
|
98
|
-
}
|
|
99
|
-
return yield (0, fetch_1._request)(this.fetch, 'POST', `${this.url}/admin/generate_link`, {
|
|
100
|
-
body: body,
|
|
101
|
-
headers: this.headers,
|
|
102
|
-
xform: fetch_1._generateLinkResponse,
|
|
103
|
-
redirectTo: options === null || options === void 0 ? void 0 : options.redirectTo,
|
|
104
|
-
});
|
|
76
|
+
async generateLink(params) {
|
|
77
|
+
try {
|
|
78
|
+
const { options } = params, rest = __rest(params, ["options"]);
|
|
79
|
+
const body = Object.assign(Object.assign({}, rest), options);
|
|
80
|
+
if ('newEmail' in rest) {
|
|
81
|
+
// replace newEmail with new_email in request body
|
|
82
|
+
body.new_email = rest === null || rest === void 0 ? void 0 : rest.newEmail;
|
|
83
|
+
delete body['newEmail'];
|
|
105
84
|
}
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
85
|
+
return await (0, fetch_1._request)(this.fetch, 'POST', `${this.url}/admin/generate_link`, {
|
|
86
|
+
body: body,
|
|
87
|
+
headers: this.headers,
|
|
88
|
+
xform: fetch_1._generateLinkResponse,
|
|
89
|
+
redirectTo: options === null || options === void 0 ? void 0 : options.redirectTo,
|
|
90
|
+
});
|
|
91
|
+
}
|
|
92
|
+
catch (error) {
|
|
93
|
+
if ((0, errors_1.isAuthError)(error)) {
|
|
94
|
+
return {
|
|
95
|
+
data: {
|
|
96
|
+
properties: null,
|
|
97
|
+
user: null,
|
|
98
|
+
},
|
|
99
|
+
error,
|
|
100
|
+
};
|
|
117
101
|
}
|
|
118
|
-
|
|
102
|
+
throw error;
|
|
103
|
+
}
|
|
119
104
|
}
|
|
120
105
|
// User Admin API
|
|
121
106
|
/**
|
|
122
107
|
* Creates a new user.
|
|
123
108
|
* This function should only be called on a server. Never expose your `service_role` key in the browser.
|
|
124
109
|
*/
|
|
125
|
-
createUser(attributes) {
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
return { data: { user: null }, error };
|
|
137
|
-
}
|
|
138
|
-
throw error;
|
|
110
|
+
async createUser(attributes) {
|
|
111
|
+
try {
|
|
112
|
+
return await (0, fetch_1._request)(this.fetch, 'POST', `${this.url}/admin/users`, {
|
|
113
|
+
body: attributes,
|
|
114
|
+
headers: this.headers,
|
|
115
|
+
xform: fetch_1._userResponse,
|
|
116
|
+
});
|
|
117
|
+
}
|
|
118
|
+
catch (error) {
|
|
119
|
+
if ((0, errors_1.isAuthError)(error)) {
|
|
120
|
+
return { data: { user: null }, error };
|
|
139
121
|
}
|
|
140
|
-
|
|
122
|
+
throw error;
|
|
123
|
+
}
|
|
141
124
|
}
|
|
142
125
|
/**
|
|
143
126
|
* Get a list of users.
|
|
@@ -145,42 +128,40 @@ class GoTrueAdminApi {
|
|
|
145
128
|
* This function should only be called on a server. Never expose your `service_role` key in the browser.
|
|
146
129
|
* @param params An object which supports `page` and `perPage` as numbers, to alter the paginated results.
|
|
147
130
|
*/
|
|
148
|
-
listUsers(params) {
|
|
131
|
+
async listUsers(params) {
|
|
149
132
|
var _a, _b, _c, _d, _e, _f, _g;
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
133
|
+
try {
|
|
134
|
+
const pagination = { nextPage: null, lastPage: 0, total: 0 };
|
|
135
|
+
const response = await (0, fetch_1._request)(this.fetch, 'GET', `${this.url}/admin/users`, {
|
|
136
|
+
headers: this.headers,
|
|
137
|
+
noResolveJson: true,
|
|
138
|
+
query: {
|
|
139
|
+
page: (_b = (_a = params === null || params === void 0 ? void 0 : params.page) === null || _a === void 0 ? void 0 : _a.toString()) !== null && _b !== void 0 ? _b : '',
|
|
140
|
+
per_page: (_d = (_c = params === null || params === void 0 ? void 0 : params.perPage) === null || _c === void 0 ? void 0 : _c.toString()) !== null && _d !== void 0 ? _d : '',
|
|
141
|
+
},
|
|
142
|
+
xform: fetch_1._noResolveJsonResponse,
|
|
143
|
+
});
|
|
144
|
+
if (response.error)
|
|
145
|
+
throw response.error;
|
|
146
|
+
const users = await response.json();
|
|
147
|
+
const total = (_e = response.headers.get('x-total-count')) !== null && _e !== void 0 ? _e : 0;
|
|
148
|
+
const links = (_g = (_f = response.headers.get('link')) === null || _f === void 0 ? void 0 : _f.split(',')) !== null && _g !== void 0 ? _g : [];
|
|
149
|
+
if (links.length > 0) {
|
|
150
|
+
links.forEach((link) => {
|
|
151
|
+
const page = parseInt(link.split(';')[0].split('=')[1].substring(0, 1));
|
|
152
|
+
const rel = JSON.parse(link.split(';')[1].split('=')[1]);
|
|
153
|
+
pagination[`${rel}Page`] = page;
|
|
161
154
|
});
|
|
162
|
-
|
|
163
|
-
throw response.error;
|
|
164
|
-
const users = yield response.json();
|
|
165
|
-
const total = (_e = response.headers.get('x-total-count')) !== null && _e !== void 0 ? _e : 0;
|
|
166
|
-
const links = (_g = (_f = response.headers.get('link')) === null || _f === void 0 ? void 0 : _f.split(',')) !== null && _g !== void 0 ? _g : [];
|
|
167
|
-
if (links.length > 0) {
|
|
168
|
-
links.forEach((link) => {
|
|
169
|
-
const page = parseInt(link.split(';')[0].split('=')[1].substring(0, 1));
|
|
170
|
-
const rel = JSON.parse(link.split(';')[1].split('=')[1]);
|
|
171
|
-
pagination[`${rel}Page`] = page;
|
|
172
|
-
});
|
|
173
|
-
pagination.total = parseInt(total);
|
|
174
|
-
}
|
|
175
|
-
return { data: Object.assign(Object.assign({}, users), pagination), error: null };
|
|
155
|
+
pagination.total = parseInt(total);
|
|
176
156
|
}
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
157
|
+
return { data: Object.assign(Object.assign({}, users), pagination), error: null };
|
|
158
|
+
}
|
|
159
|
+
catch (error) {
|
|
160
|
+
if ((0, errors_1.isAuthError)(error)) {
|
|
161
|
+
return { data: { users: [] }, error };
|
|
182
162
|
}
|
|
183
|
-
|
|
163
|
+
throw error;
|
|
164
|
+
}
|
|
184
165
|
}
|
|
185
166
|
/**
|
|
186
167
|
* Get user by id.
|
|
@@ -189,21 +170,19 @@ class GoTrueAdminApi {
|
|
|
189
170
|
*
|
|
190
171
|
* This function should only be called on a server. Never expose your `service_role` key in the browser.
|
|
191
172
|
*/
|
|
192
|
-
getUserById(uid) {
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
return { data: { user: null }, error };
|
|
203
|
-
}
|
|
204
|
-
throw error;
|
|
173
|
+
async getUserById(uid) {
|
|
174
|
+
try {
|
|
175
|
+
return await (0, fetch_1._request)(this.fetch, 'GET', `${this.url}/admin/users/${uid}`, {
|
|
176
|
+
headers: this.headers,
|
|
177
|
+
xform: fetch_1._userResponse,
|
|
178
|
+
});
|
|
179
|
+
}
|
|
180
|
+
catch (error) {
|
|
181
|
+
if ((0, errors_1.isAuthError)(error)) {
|
|
182
|
+
return { data: { user: null }, error };
|
|
205
183
|
}
|
|
206
|
-
|
|
184
|
+
throw error;
|
|
185
|
+
}
|
|
207
186
|
}
|
|
208
187
|
/**
|
|
209
188
|
* Updates the user data.
|
|
@@ -212,22 +191,20 @@ class GoTrueAdminApi {
|
|
|
212
191
|
*
|
|
213
192
|
* This function should only be called on a server. Never expose your `service_role` key in the browser.
|
|
214
193
|
*/
|
|
215
|
-
updateUserById(uid, attributes) {
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
return { data: { user: null }, error };
|
|
227
|
-
}
|
|
228
|
-
throw error;
|
|
194
|
+
async updateUserById(uid, attributes) {
|
|
195
|
+
try {
|
|
196
|
+
return await (0, fetch_1._request)(this.fetch, 'PUT', `${this.url}/admin/users/${uid}`, {
|
|
197
|
+
body: attributes,
|
|
198
|
+
headers: this.headers,
|
|
199
|
+
xform: fetch_1._userResponse,
|
|
200
|
+
});
|
|
201
|
+
}
|
|
202
|
+
catch (error) {
|
|
203
|
+
if ((0, errors_1.isAuthError)(error)) {
|
|
204
|
+
return { data: { user: null }, error };
|
|
229
205
|
}
|
|
230
|
-
|
|
206
|
+
throw error;
|
|
207
|
+
}
|
|
231
208
|
}
|
|
232
209
|
/**
|
|
233
210
|
* Delete a user. Requires a `service_role` key.
|
|
@@ -238,59 +215,53 @@ class GoTrueAdminApi {
|
|
|
238
215
|
*
|
|
239
216
|
* This function should only be called on a server. Never expose your `service_role` key in the browser.
|
|
240
217
|
*/
|
|
241
|
-
deleteUser(id, shouldSoftDelete = false) {
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
return { data: { user: null }, error };
|
|
255
|
-
}
|
|
256
|
-
throw error;
|
|
218
|
+
async deleteUser(id, shouldSoftDelete = false) {
|
|
219
|
+
try {
|
|
220
|
+
return await (0, fetch_1._request)(this.fetch, 'DELETE', `${this.url}/admin/users/${id}`, {
|
|
221
|
+
headers: this.headers,
|
|
222
|
+
body: {
|
|
223
|
+
should_soft_delete: shouldSoftDelete,
|
|
224
|
+
},
|
|
225
|
+
xform: fetch_1._userResponse,
|
|
226
|
+
});
|
|
227
|
+
}
|
|
228
|
+
catch (error) {
|
|
229
|
+
if ((0, errors_1.isAuthError)(error)) {
|
|
230
|
+
return { data: { user: null }, error };
|
|
257
231
|
}
|
|
258
|
-
|
|
232
|
+
throw error;
|
|
233
|
+
}
|
|
259
234
|
}
|
|
260
|
-
_listFactors(params) {
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
return { data: null, error };
|
|
274
|
-
}
|
|
275
|
-
throw error;
|
|
235
|
+
async _listFactors(params) {
|
|
236
|
+
try {
|
|
237
|
+
const { data, error } = await (0, fetch_1._request)(this.fetch, 'GET', `${this.url}/admin/users/${params.userId}/factors`, {
|
|
238
|
+
headers: this.headers,
|
|
239
|
+
xform: (factors) => {
|
|
240
|
+
return { data: { factors }, error: null };
|
|
241
|
+
},
|
|
242
|
+
});
|
|
243
|
+
return { data, error };
|
|
244
|
+
}
|
|
245
|
+
catch (error) {
|
|
246
|
+
if ((0, errors_1.isAuthError)(error)) {
|
|
247
|
+
return { data: null, error };
|
|
276
248
|
}
|
|
277
|
-
|
|
249
|
+
throw error;
|
|
250
|
+
}
|
|
278
251
|
}
|
|
279
|
-
_deleteFactor(params) {
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
return { data: null, error };
|
|
290
|
-
}
|
|
291
|
-
throw error;
|
|
252
|
+
async _deleteFactor(params) {
|
|
253
|
+
try {
|
|
254
|
+
const data = await (0, fetch_1._request)(this.fetch, 'DELETE', `${this.url}/admin/users/${params.userId}/factors/${params.id}`, {
|
|
255
|
+
headers: this.headers,
|
|
256
|
+
});
|
|
257
|
+
return { data, error: null };
|
|
258
|
+
}
|
|
259
|
+
catch (error) {
|
|
260
|
+
if ((0, errors_1.isAuthError)(error)) {
|
|
261
|
+
return { data: null, error };
|
|
292
262
|
}
|
|
293
|
-
|
|
263
|
+
throw error;
|
|
264
|
+
}
|
|
294
265
|
}
|
|
295
266
|
}
|
|
296
267
|
exports.default = GoTrueAdminApi;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GoTrueAdminApi.js","sourceRoot":"","sources":["../../src/GoTrueAdminApi.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"GoTrueAdminApi.js","sourceRoot":"","sources":["../../src/GoTrueAdminApi.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,uCAMoB;AACpB,2CAA4C;AAe5C,yCAAqD;AAErD,MAAqB,cAAc;IAUjC,YAAY,EACV,GAAG,GAAG,EAAE,EACR,OAAO,GAAG,EAAE,EACZ,KAAK,GAON;QACC,IAAI,CAAC,GAAG,GAAG,GAAG,CAAA;QACd,IAAI,CAAC,OAAO,GAAG,OAAO,CAAA;QACtB,IAAI,CAAC,KAAK,GAAG,IAAA,sBAAY,EAAC,KAAK,CAAC,CAAA;QAChC,IAAI,CAAC,GAAG,GAAG;YACT,WAAW,EAAE,IAAI,CAAC,YAA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