@supabase/auth-js 2.100.0-canary.4 → 2.100.0-canary.6

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.
@@ -40,6 +40,8 @@ export default class GoTrueAdminApi {
40
40
  * Removes a logged-in session.
41
41
  * @param jwt A valid, logged-in JWT.
42
42
  * @param scope The logout sope.
43
+ *
44
+ * @category Auth
43
45
  */
44
46
  signOut(jwt: string, scope?: SignOutScope): Promise<{
45
47
  data: null;
@@ -49,6 +51,64 @@ export default class GoTrueAdminApi {
49
51
  * Sends an invite link to an email address.
50
52
  * @param email The email address of the user.
51
53
  * @param options Additional options to be included when inviting.
54
+ *
55
+ * @category Auth
56
+ *
57
+ * @remarks
58
+ * - Sends an invite link to the user's email address.
59
+ * - The `inviteUserByEmail()` method is typically used by administrators to invite users to join the application.
60
+ * - Note that PKCE is not supported when using `inviteUserByEmail`. This is because the browser initiating the invite is often different from the browser accepting the invite which makes it difficult to provide the security guarantees required of the PKCE flow.
61
+ *
62
+ * @example Invite a user
63
+ * ```js
64
+ * const { data, error } = await supabase.auth.admin.inviteUserByEmail('email@example.com')
65
+ * ```
66
+ *
67
+ * @exampleResponse Invite a user
68
+ * ```json
69
+ * {
70
+ * "data": {
71
+ * "user": {
72
+ * "id": "11111111-1111-1111-1111-111111111111",
73
+ * "aud": "authenticated",
74
+ * "role": "authenticated",
75
+ * "email": "example@email.com",
76
+ * "invited_at": "2024-01-01T00:00:00Z",
77
+ * "phone": "",
78
+ * "confirmation_sent_at": "2024-01-01T00:00:00Z",
79
+ * "app_metadata": {
80
+ * "provider": "email",
81
+ * "providers": [
82
+ * "email"
83
+ * ]
84
+ * },
85
+ * "user_metadata": {},
86
+ * "identities": [
87
+ * {
88
+ * "identity_id": "22222222-2222-2222-2222-222222222222",
89
+ * "id": "11111111-1111-1111-1111-111111111111",
90
+ * "user_id": "11111111-1111-1111-1111-111111111111",
91
+ * "identity_data": {
92
+ * "email": "example@email.com",
93
+ * "email_verified": false,
94
+ * "phone_verified": false,
95
+ * "sub": "11111111-1111-1111-1111-111111111111"
96
+ * },
97
+ * "provider": "email",
98
+ * "last_sign_in_at": "2024-01-01T00:00:00Z",
99
+ * "created_at": "2024-01-01T00:00:00Z",
100
+ * "updated_at": "2024-01-01T00:00:00Z",
101
+ * "email": "example@email.com"
102
+ * }
103
+ * ],
104
+ * "created_at": "2024-01-01T00:00:00Z",
105
+ * "updated_at": "2024-01-01T00:00:00Z",
106
+ * "is_anonymous": false
107
+ * }
108
+ * },
109
+ * "error": null
110
+ * }
111
+ * ```
52
112
  */
53
113
  inviteUserByEmail(email: string, options?: {
54
114
  /** A custom data object to store additional metadata about the user. This maps to the `auth.users.user_metadata` column. */
@@ -62,11 +122,195 @@ export default class GoTrueAdminApi {
62
122
  * @param options.password User password. For signup only.
63
123
  * @param options.data Optional user metadata. For signup only.
64
124
  * @param options.redirectTo The redirect url which should be appended to the generated link
125
+ *
126
+ * @category Auth
127
+ *
128
+ * @remarks
129
+ * - The following types can be passed into `generateLink()`: `signup`, `magiclink`, `invite`, `recovery`, `email_change_current`, `email_change_new`, `phone_change`.
130
+ * - `generateLink()` only generates the email link for `email_change_email` if the **Secure email change** is enabled in your project's [email auth provider settings](/dashboard/project/_/auth/providers).
131
+ * - `generateLink()` handles the creation of the user for `signup`, `invite` and `magiclink`.
132
+ *
133
+ * @example Generate a signup link
134
+ * ```js
135
+ * const { data, error } = await supabase.auth.admin.generateLink({
136
+ * type: 'signup',
137
+ * email: 'email@example.com',
138
+ * password: 'secret'
139
+ * })
140
+ * ```
141
+ *
142
+ * @exampleResponse Generate a signup link
143
+ * ```json
144
+ * {
145
+ * "data": {
146
+ * "properties": {
147
+ * "action_link": "<LINK_TO_SEND_TO_USER>",
148
+ * "email_otp": "999999",
149
+ * "hashed_token": "<HASHED_TOKEN",
150
+ * "redirect_to": "<REDIRECT_URL>",
151
+ * "verification_type": "signup"
152
+ * },
153
+ * "user": {
154
+ * "id": "11111111-1111-1111-1111-111111111111",
155
+ * "aud": "authenticated",
156
+ * "role": "authenticated",
157
+ * "email": "email@example.com",
158
+ * "phone": "",
159
+ * "confirmation_sent_at": "2024-01-01T00:00:00Z",
160
+ * "app_metadata": {
161
+ * "provider": "email",
162
+ * "providers": [
163
+ * "email"
164
+ * ]
165
+ * },
166
+ * "user_metadata": {},
167
+ * "identities": [
168
+ * {
169
+ * "identity_id": "22222222-2222-2222-2222-222222222222",
170
+ * "id": "11111111-1111-1111-1111-111111111111",
171
+ * "user_id": "11111111-1111-1111-1111-111111111111",
172
+ * "identity_data": {
173
+ * "email": "email@example.com",
174
+ * "email_verified": false,
175
+ * "phone_verified": false,
176
+ * "sub": "11111111-1111-1111-1111-111111111111"
177
+ * },
178
+ * "provider": "email",
179
+ * "last_sign_in_at": "2024-01-01T00:00:00Z",
180
+ * "created_at": "2024-01-01T00:00:00Z",
181
+ * "updated_at": "2024-01-01T00:00:00Z",
182
+ * "email": "email@example.com"
183
+ * }
184
+ * ],
185
+ * "created_at": "2024-01-01T00:00:00Z",
186
+ * "updated_at": "2024-01-01T00:00:00Z",
187
+ * "is_anonymous": false
188
+ * }
189
+ * },
190
+ * "error": null
191
+ * }
192
+ * ```
193
+ *
194
+ * @example Generate an invite link
195
+ * ```js
196
+ * const { data, error } = await supabase.auth.admin.generateLink({
197
+ * type: 'invite',
198
+ * email: 'email@example.com'
199
+ * })
200
+ * ```
201
+ *
202
+ * @example Generate a magic link
203
+ * ```js
204
+ * const { data, error } = await supabase.auth.admin.generateLink({
205
+ * type: 'magiclink',
206
+ * email: 'email@example.com'
207
+ * })
208
+ * ```
209
+ *
210
+ * @example Generate a recovery link
211
+ * ```js
212
+ * const { data, error } = await supabase.auth.admin.generateLink({
213
+ * type: 'recovery',
214
+ * email: 'email@example.com'
215
+ * })
216
+ * ```
217
+ *
218
+ * @example Generate links to change current email address
219
+ * ```js
220
+ * // generate an email change link to be sent to the current email address
221
+ * const { data, error } = await supabase.auth.admin.generateLink({
222
+ * type: 'email_change_current',
223
+ * email: 'current.email@example.com',
224
+ * newEmail: 'new.email@example.com'
225
+ * })
226
+ *
227
+ * // generate an email change link to be sent to the new email address
228
+ * const { data, error } = await supabase.auth.admin.generateLink({
229
+ * type: 'email_change_new',
230
+ * email: 'current.email@example.com',
231
+ * newEmail: 'new.email@example.com'
232
+ * })
233
+ * ```
65
234
  */
66
235
  generateLink(params: GenerateLinkParams): Promise<GenerateLinkResponse>;
67
236
  /**
68
237
  * Creates a new user.
69
238
  * This function should only be called on a server. Never expose your `service_role` key in the browser.
239
+ *
240
+ * @category Auth
241
+ *
242
+ * @remarks
243
+ * - To confirm the user's email address or phone number, set `email_confirm` or `phone_confirm` to true. Both arguments default to false.
244
+ * - `createUser()` will not send a confirmation email to the user. You can use [`inviteUserByEmail()`](/docs/reference/javascript/auth-admin-inviteuserbyemail) if you want to send them an email invite instead.
245
+ * - If you are sure that the created user's email or phone number is legitimate and verified, you can set the `email_confirm` or `phone_confirm` param to `true`.
246
+ *
247
+ * @example With custom user metadata
248
+ * ```js
249
+ * const { data, error } = await supabase.auth.admin.createUser({
250
+ * email: 'user@email.com',
251
+ * password: 'password',
252
+ * user_metadata: { name: 'Yoda' }
253
+ * })
254
+ * ```
255
+ *
256
+ * @exampleResponse With custom user metadata
257
+ * ```json
258
+ * {
259
+ * data: {
260
+ * user: {
261
+ * id: '1',
262
+ * aud: 'authenticated',
263
+ * role: 'authenticated',
264
+ * email: 'example@email.com',
265
+ * email_confirmed_at: '2024-01-01T00:00:00Z',
266
+ * phone: '',
267
+ * confirmation_sent_at: '2024-01-01T00:00:00Z',
268
+ * confirmed_at: '2024-01-01T00:00:00Z',
269
+ * last_sign_in_at: '2024-01-01T00:00:00Z',
270
+ * app_metadata: {},
271
+ * user_metadata: {},
272
+ * identities: [
273
+ * {
274
+ * "identity_id": "22222222-2222-2222-2222-222222222222",
275
+ * "id": "1",
276
+ * "user_id": "1",
277
+ * "identity_data": {
278
+ * "email": "example@email.com",
279
+ * "email_verified": true,
280
+ * "phone_verified": false,
281
+ * "sub": "1"
282
+ * },
283
+ * "provider": "email",
284
+ * "last_sign_in_at": "2024-01-01T00:00:00Z",
285
+ * "created_at": "2024-01-01T00:00:00Z",
286
+ * "updated_at": "2024-01-01T00:00:00Z",
287
+ * "email": "email@example.com"
288
+ * },
289
+ * ],
290
+ * created_at: '2024-01-01T00:00:00Z',
291
+ * updated_at: '2024-01-01T00:00:00Z',
292
+ * is_anonymous: false,
293
+ * }
294
+ * }
295
+ * error: null
296
+ * }
297
+ * ```
298
+ *
299
+ * @example Auto-confirm the user's email
300
+ * ```js
301
+ * const { data, error } = await supabase.auth.admin.createUser({
302
+ * email: 'user@email.com',
303
+ * email_confirm: true
304
+ * })
305
+ * ```
306
+ *
307
+ * @example Auto-confirm the user's phone number
308
+ * ```js
309
+ * const { data, error } = await supabase.auth.admin.createUser({
310
+ * phone: '1234567890',
311
+ * phone_confirm: true
312
+ * })
313
+ * ```
70
314
  */
71
315
  createUser(attributes: AdminUserAttributes): Promise<UserResponse>;
72
316
  /**
@@ -74,6 +318,24 @@ export default class GoTrueAdminApi {
74
318
  *
75
319
  * This function should only be called on a server. Never expose your `service_role` key in the browser.
76
320
  * @param params An object which supports `page` and `perPage` as numbers, to alter the paginated results.
321
+ *
322
+ * @category Auth
323
+ *
324
+ * @remarks
325
+ * - Defaults to return 50 users per page.
326
+ *
327
+ * @example Get a page of users
328
+ * ```js
329
+ * const { data: { users }, error } = await supabase.auth.admin.listUsers()
330
+ * ```
331
+ *
332
+ * @example Paginated list of users
333
+ * ```js
334
+ * const { data: { users }, error } = await supabase.auth.admin.listUsers({
335
+ * page: 1,
336
+ * perPage: 1000
337
+ * })
338
+ * ```
77
339
  */
78
340
  listUsers(params?: PageParams): Promise<{
79
341
  data: {
@@ -93,6 +355,60 @@ export default class GoTrueAdminApi {
93
355
  * @param uid The user's unique identifier
94
356
  *
95
357
  * This function should only be called on a server. Never expose your `service_role` key in the browser.
358
+ *
359
+ * @category Auth
360
+ *
361
+ * @remarks
362
+ * - Fetches the user object from the database based on the user's id.
363
+ * - The `getUserById()` method requires the user's id which maps to the `auth.users.id` column.
364
+ *
365
+ * @example Fetch the user object using the access_token jwt
366
+ * ```js
367
+ * const { data, error } = await supabase.auth.admin.getUserById(1)
368
+ * ```
369
+ *
370
+ * @exampleResponse Fetch the user object using the access_token jwt
371
+ * ```json
372
+ * {
373
+ * data: {
374
+ * user: {
375
+ * id: '1',
376
+ * aud: 'authenticated',
377
+ * role: 'authenticated',
378
+ * email: 'example@email.com',
379
+ * email_confirmed_at: '2024-01-01T00:00:00Z',
380
+ * phone: '',
381
+ * confirmation_sent_at: '2024-01-01T00:00:00Z',
382
+ * confirmed_at: '2024-01-01T00:00:00Z',
383
+ * last_sign_in_at: '2024-01-01T00:00:00Z',
384
+ * app_metadata: {},
385
+ * user_metadata: {},
386
+ * identities: [
387
+ * {
388
+ * "identity_id": "22222222-2222-2222-2222-222222222222",
389
+ * "id": "1",
390
+ * "user_id": "1",
391
+ * "identity_data": {
392
+ * "email": "example@email.com",
393
+ * "email_verified": true,
394
+ * "phone_verified": false,
395
+ * "sub": "1"
396
+ * },
397
+ * "provider": "email",
398
+ * "last_sign_in_at": "2024-01-01T00:00:00Z",
399
+ * "created_at": "2024-01-01T00:00:00Z",
400
+ * "updated_at": "2024-01-01T00:00:00Z",
401
+ * "email": "email@example.com"
402
+ * },
403
+ * ],
404
+ * created_at: '2024-01-01T00:00:00Z',
405
+ * updated_at: '2024-01-01T00:00:00Z',
406
+ * is_anonymous: false,
407
+ * }
408
+ * }
409
+ * error: null
410
+ * }
411
+ * ```
96
412
  */
97
413
  getUserById(uid: string): Promise<UserResponse>;
98
414
  /**
@@ -126,6 +442,117 @@ export default class GoTrueAdminApi {
126
442
  *
127
443
  * @see {@link GoTrueClient.refreshSession} for syncing admin changes to the client
128
444
  * @see {@link GoTrueClient.updateUser} for client-side user updates (triggers listeners automatically)
445
+ *
446
+ * @category Auth
447
+ *
448
+ * @example Updates a user's email
449
+ * ```js
450
+ * const { data: user, error } = await supabase.auth.admin.updateUserById(
451
+ * '11111111-1111-1111-1111-111111111111',
452
+ * { email: 'new@email.com' }
453
+ * )
454
+ * ```
455
+ *
456
+ * @exampleResponse Updates a user's email
457
+ * ```json
458
+ * {
459
+ * "data": {
460
+ * "user": {
461
+ * "id": "11111111-1111-1111-1111-111111111111",
462
+ * "aud": "authenticated",
463
+ * "role": "authenticated",
464
+ * "email": "new@email.com",
465
+ * "email_confirmed_at": "2024-01-01T00:00:00Z",
466
+ * "phone": "",
467
+ * "confirmed_at": "2024-01-01T00:00:00Z",
468
+ * "recovery_sent_at": "2024-01-01T00:00:00Z",
469
+ * "last_sign_in_at": "2024-01-01T00:00:00Z",
470
+ * "app_metadata": {
471
+ * "provider": "email",
472
+ * "providers": [
473
+ * "email"
474
+ * ]
475
+ * },
476
+ * "user_metadata": {
477
+ * "email": "example@email.com",
478
+ * "email_verified": false,
479
+ * "phone_verified": false,
480
+ * "sub": "11111111-1111-1111-1111-111111111111"
481
+ * },
482
+ * "identities": [
483
+ * {
484
+ * "identity_id": "22222222-2222-2222-2222-222222222222",
485
+ * "id": "11111111-1111-1111-1111-111111111111",
486
+ * "user_id": "11111111-1111-1111-1111-111111111111",
487
+ * "identity_data": {
488
+ * "email": "example@email.com",
489
+ * "email_verified": false,
490
+ * "phone_verified": false,
491
+ * "sub": "11111111-1111-1111-1111-111111111111"
492
+ * },
493
+ * "provider": "email",
494
+ * "last_sign_in_at": "2024-01-01T00:00:00Z",
495
+ * "created_at": "2024-01-01T00:00:00Z",
496
+ * "updated_at": "2024-01-01T00:00:00Z",
497
+ * "email": "example@email.com"
498
+ * }
499
+ * ],
500
+ * "created_at": "2024-01-01T00:00:00Z",
501
+ * "updated_at": "2024-01-01T00:00:00Z",
502
+ * "is_anonymous": false
503
+ * }
504
+ * },
505
+ * "error": null
506
+ * }
507
+ * ```
508
+ *
509
+ * @example Updates a user's password
510
+ * ```js
511
+ * const { data: user, error } = await supabase.auth.admin.updateUserById(
512
+ * '6aa5d0d4-2a9f-4483-b6c8-0cf4c6c98ac4',
513
+ * { password: 'new_password' }
514
+ * )
515
+ * ```
516
+ *
517
+ * @example Updates a user's metadata
518
+ * ```js
519
+ * const { data: user, error } = await supabase.auth.admin.updateUserById(
520
+ * '6aa5d0d4-2a9f-4483-b6c8-0cf4c6c98ac4',
521
+ * { user_metadata: { hello: 'world' } }
522
+ * )
523
+ * ```
524
+ *
525
+ * @example Updates a user's app_metadata
526
+ * ```js
527
+ * const { data: user, error } = await supabase.auth.admin.updateUserById(
528
+ * '6aa5d0d4-2a9f-4483-b6c8-0cf4c6c98ac4',
529
+ * { app_metadata: { plan: 'trial' } }
530
+ * )
531
+ * ```
532
+ *
533
+ * @example Confirms a user's email address
534
+ * ```js
535
+ * const { data: user, error } = await supabase.auth.admin.updateUserById(
536
+ * '6aa5d0d4-2a9f-4483-b6c8-0cf4c6c98ac4',
537
+ * { email_confirm: true }
538
+ * )
539
+ * ```
540
+ *
541
+ * @example Confirms a user's phone number
542
+ * ```js
543
+ * const { data: user, error } = await supabase.auth.admin.updateUserById(
544
+ * '6aa5d0d4-2a9f-4483-b6c8-0cf4c6c98ac4',
545
+ * { phone_confirm: true }
546
+ * )
547
+ * ```
548
+ *
549
+ * @example Ban a user for 100 years
550
+ * ```js
551
+ * const { data: user, error } = await supabase.auth.admin.updateUserById(
552
+ * '6aa5d0d4-2a9f-4483-b6c8-0cf4c6c98ac4',
553
+ * { ban_duration: '876000h' }
554
+ * )
555
+ * ```
129
556
  */
130
557
  updateUserById(uid: string, attributes: AdminUserAttributes): Promise<UserResponse>;
131
558
  /**
@@ -136,6 +563,28 @@ export default class GoTrueAdminApi {
136
563
  * Defaults to false for backward compatibility.
137
564
  *
138
565
  * This function should only be called on a server. Never expose your `service_role` key in the browser.
566
+ *
567
+ * @category Auth
568
+ *
569
+ * @remarks
570
+ * - The `deleteUser()` method requires the user's ID, which maps to the `auth.users.id` column.
571
+ *
572
+ * @example Removes a user
573
+ * ```js
574
+ * const { data, error } = await supabase.auth.admin.deleteUser(
575
+ * '715ed5db-f090-4b8c-a067-640ecee36aa0'
576
+ * )
577
+ * ```
578
+ *
579
+ * @exampleResponse Removes a user
580
+ * ```json
581
+ * {
582
+ * "data": {
583
+ * "user": {}
584
+ * },
585
+ * "error": null
586
+ * }
587
+ * ```
139
588
  */
140
589
  deleteUser(id: string, shouldSoftDelete?: boolean): Promise<UserResponse>;
141
590
  private _listFactors;
@@ -1 +1 @@
1
- {"version":3,"file":"GoTrueAdminApi.d.ts","sourceRoot":"","sources":["../../src/GoTrueAdminApi.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,EAKN,MAAM,aAAa,CAAA;AAEpB,OAAO,EACL,mBAAmB,EACnB,kBAAkB,EAClB,oBAAoB,EACpB,UAAU,EACV,IAAI,EACJ,YAAY,EACZ,iBAAiB,EAKjB,UAAU,EAEV,YAAY,EACZ,mBAAmB,EAKnB,6BAA6B,EAM9B,MAAM,aAAa,CAAA;AACpB,OAAO,EAAE,SAAS,EAAe,MAAM,cAAc,CAAA;AAErD,MAAM,CAAC,OAAO,OAAO,cAAc;IACjC,+CAA+C;IAC/C,GAAG,EAAE,iBAAiB,CAAA;IAEtB;;;OAGG;IACH,KAAK,EAAE,mBAAmB,CAAA;IAE1B,sEAAsE;IACtE,eAAe,EAAE,6BAA6B,CAAA;IAE9C,SAAS,CAAC,GAAG,EAAE,MAAM,CAAA;IACrB,SAAS,CAAC,OAAO,EAAE;QACjB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;KACtB,CAAA;IACD,SAAS,CAAC,KAAK,EAAE,KAAK,CAAA;IAEtB;;;;;;;;;;;;OAYG;gBACS,EACV,GAAQ,EACR,OAAY,EACZ,KAAK,GACN,EAAE;QACD,GAAG,EAAE,MAAM,CAAA;QACX,OAAO,CAAC,EAAE;YACR,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;SACtB,CAAA;QACD,KAAK,CAAC,E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