@better-auth/core 1.4.6-beta.2 → 1.4.6-beta.4

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.
Files changed (59) hide show
  1. package/.turbo/turbo-build.log +31 -30
  2. package/dist/api/index.d.mts +1 -2
  3. package/dist/api/index.mjs +3 -2
  4. package/dist/async_hooks/index.d.mts +1 -1
  5. package/dist/async_hooks/index.mjs +2 -1
  6. package/dist/async_hooks-CrTStdt6.mjs +45 -0
  7. package/dist/context/index.d.mts +2 -3
  8. package/dist/context/index.mjs +3 -2
  9. package/dist/{context-DgQ9XGBl.mjs → context-su4uu82y.mjs} +1 -1
  10. package/dist/db/adapter/index.d.mts +2 -3
  11. package/dist/db/adapter/index.mjs +955 -1
  12. package/dist/db/index.d.mts +2 -3
  13. package/dist/db/index.mjs +2 -1
  14. package/dist/env/index.d.mts +1 -1
  15. package/dist/env/index.mjs +1 -1
  16. package/dist/error/index.mjs +3 -2
  17. package/dist/{error-BhAKg8LX.mjs → error-CMXuwPsa.mjs} +1 -1
  18. package/dist/get-tables-BGfrxIVZ.mjs +252 -0
  19. package/dist/{index-D_XSRX55.d.mts → index-Bp1Bfmzt.d.mts} +307 -32
  20. package/dist/{index-DgwIISs7.d.mts → index-Da4Ujjef.d.mts} +0 -1
  21. package/dist/index.d.mts +2 -3
  22. package/dist/oauth2/index.d.mts +1 -2
  23. package/dist/oauth2/index.mjs +1 -1
  24. package/dist/social-providers/index.d.mts +2 -3
  25. package/dist/social-providers/index.mjs +22 -8
  26. package/dist/utils/index.d.mts +10 -1
  27. package/dist/utils/index.mjs +3 -2
  28. package/dist/utils-BqQC77zO.mjs +43 -0
  29. package/package.json +8 -6
  30. package/src/async_hooks/convex.spec.ts +12 -0
  31. package/src/async_hooks/index.ts +60 -25
  32. package/src/db/adapter/factory.ts +1368 -0
  33. package/src/db/adapter/get-default-field-name.ts +59 -0
  34. package/src/db/adapter/get-default-model-name.ts +51 -0
  35. package/src/db/adapter/get-field-attributes.ts +62 -0
  36. package/src/db/adapter/get-field-name.ts +43 -0
  37. package/src/db/adapter/get-id-field.ts +141 -0
  38. package/src/db/adapter/get-model-name.ts +36 -0
  39. package/src/db/adapter/index.ts +12 -0
  40. package/src/db/adapter/types.ts +161 -0
  41. package/src/db/adapter/utils.ts +61 -0
  42. package/src/db/get-tables.ts +276 -0
  43. package/src/db/index.ts +2 -0
  44. package/src/db/test/get-tables.test.ts +62 -0
  45. package/src/env/logger.ts +4 -6
  46. package/src/oauth2/oauth-provider.ts +1 -1
  47. package/src/social-providers/google.ts +46 -17
  48. package/src/types/context.ts +10 -0
  49. package/src/types/helper.ts +4 -0
  50. package/src/types/init-options.ts +24 -24
  51. package/src/utils/id.ts +5 -0
  52. package/src/utils/index.ts +3 -0
  53. package/src/utils/json.ts +25 -0
  54. package/src/utils/string.ts +3 -0
  55. package/dist/async_hooks-BfRfbd1J.mjs +0 -18
  56. package/dist/utils-C5EN75oV.mjs +0 -7
  57. /package/dist/{env-8yWFh7b8.mjs → env-D6s-lvJz.mjs} +0 -0
  58. /package/dist/{index-X1Fs3IbM.d.mts → index-D4vfN5ui.d.mts} +0 -0
  59. /package/dist/{oauth2-B2XPHgx5.mjs → oauth2-7k48hhcV.mjs} +0 -0
@@ -1,4 +1,4 @@
1
- import { i as Logger, o as createLogger } from "./index-X1Fs3IbM.mjs";
1
+ import { i as Logger, o as createLogger } from "./index-D4vfN5ui.mjs";
2
2
  import * as z from "zod";
3
3
  import { BetterFetch, BetterFetchOption, BetterFetchPlugin } from "@better-fetch/fetch";
4
4
  import * as jose0 from "jose";
@@ -249,6 +249,9 @@ declare const verificationSchema: z.ZodObject<{
249
249
  */
250
250
  type Verification = z.infer<typeof verificationSchema>;
251
251
  //#endregion
252
+ //#region src/db/get-tables.d.ts
253
+ declare const getAuthTables: (options: BetterAuthOptions) => BetterAuthDBSchema;
254
+ //#endregion
252
255
  //#region src/db/index.d.ts
253
256
  /**
254
257
  * @deprecated Backport for 1.3.x, we will remove this in 1.4.x
@@ -275,6 +278,265 @@ type Primitive$1 = DBPrimitive;
275
278
  */
276
279
  type BetterAuthDbSchema = BetterAuthDBSchema;
277
280
  //#endregion
281
+ //#region src/db/adapter/get-default-field-name.d.ts
282
+ declare const initGetDefaultFieldName: ({
283
+ schema,
284
+ usePlural
285
+ }: {
286
+ schema: BetterAuthDBSchema;
287
+ usePlural: boolean | undefined;
288
+ }) => ({
289
+ field,
290
+ model: unsafeModel
291
+ }: {
292
+ model: string;
293
+ field: string;
294
+ }) => string;
295
+ //#endregion
296
+ //#region src/db/adapter/get-default-model-name.d.ts
297
+ declare const initGetDefaultModelName: ({
298
+ usePlural,
299
+ schema
300
+ }: {
301
+ usePlural: boolean | undefined;
302
+ schema: BetterAuthDBSchema;
303
+ }) => (model: string) => string;
304
+ //#endregion
305
+ //#region src/db/adapter/get-field-attributes.d.ts
306
+ declare const initGetFieldAttributes: ({
307
+ usePlural,
308
+ schema,
309
+ options,
310
+ customIdGenerator,
311
+ disableIdGeneration
312
+ }: {
313
+ usePlural?: boolean;
314
+ schema: BetterAuthDBSchema;
315
+ options: BetterAuthOptions;
316
+ disableIdGeneration?: boolean;
317
+ customIdGenerator?: ((props: {
318
+ model: string;
319
+ }) => string) | undefined;
320
+ }) => ({
321
+ model,
322
+ field
323
+ }: {
324
+ model: string;
325
+ field: string;
326
+ }) => DBFieldAttribute<DBFieldType>;
327
+ //#endregion
328
+ //#region src/db/adapter/get-field-name.d.ts
329
+ declare const initGetFieldName: ({
330
+ schema,
331
+ usePlural
332
+ }: {
333
+ schema: BetterAuthDBSchema;
334
+ usePlural: boolean | undefined;
335
+ }) => ({
336
+ model: modelName,
337
+ field: fieldName
338
+ }: {
339
+ model: string;
340
+ field: string;
341
+ }) => string;
342
+ //#endregion
343
+ //#region src/db/adapter/get-id-field.d.ts
344
+ declare const initGetIdField: ({
345
+ usePlural,
346
+ schema,
347
+ disableIdGeneration,
348
+ options,
349
+ customIdGenerator,
350
+ supportsUUIDs
351
+ }: {
352
+ usePlural?: boolean;
353
+ schema: BetterAuthDBSchema;
354
+ options: BetterAuthOptions;
355
+ disableIdGeneration?: boolean;
356
+ customIdGenerator?: ((props: {
357
+ model: string;
358
+ }) => string) | undefined;
359
+ supportsUUIDs?: boolean;
360
+ }) => ({
361
+ customModelName,
362
+ forceAllowId
363
+ }: {
364
+ customModelName?: string;
365
+ forceAllowId?: boolean;
366
+ }) => {
367
+ transform: {
368
+ input: (value: DBPrimitive) => string | number | true | Date | Record<string, unknown> | unknown[] | undefined;
369
+ output: (value: DBPrimitive) => string | undefined;
370
+ };
371
+ defaultValue?: (() => string | false | undefined) | undefined;
372
+ type: "string" | "number";
373
+ required: boolean;
374
+ };
375
+ //#endregion
376
+ //#region src/db/adapter/get-model-name.d.ts
377
+ declare const initGetModelName: ({
378
+ usePlural,
379
+ schema
380
+ }: {
381
+ usePlural: boolean | undefined;
382
+ schema: BetterAuthDBSchema;
383
+ }) => (model: string) => string;
384
+ //#endregion
385
+ //#region src/types/helper.d.ts
386
+ type Primitive = string | number | symbol | bigint | boolean | null | undefined;
387
+ type LiteralString = "" | (string & Record<never, never>);
388
+ type LiteralUnion<LiteralType, BaseType extends Primitive> = LiteralType | (BaseType & Record<never, never>);
389
+ type Prettify<T> = { [K in keyof T]: T[K] } & {};
390
+ //#endregion
391
+ //#region src/db/adapter/types.d.ts
392
+ type AdapterFactoryOptions = {
393
+ config: AdapterFactoryConfig;
394
+ adapter: AdapterFactoryCustomizeAdapterCreator;
395
+ };
396
+ interface AdapterFactoryConfig extends Omit<DBAdapterFactoryConfig<BetterAuthOptions>, "transaction"> {
397
+ /**
398
+ * Execute multiple operations in a transaction.
399
+ *
400
+ * If the database doesn't support transactions, set this to `false` and operations will be executed sequentially.
401
+ *
402
+ * @default false
403
+ */
404
+ transaction?: (false | (<R>(callback: (trx: DBTransactionAdapter) => Promise<R>) => Promise<R>)) | undefined;
405
+ }
406
+ type AdapterFactoryCustomizeAdapterCreator = (config: {
407
+ options: BetterAuthOptions;
408
+ /**
409
+ * The schema of the user's Better-Auth instance.
410
+ */
411
+ schema: BetterAuthDBSchema;
412
+ /**
413
+ * The debug log function.
414
+ *
415
+ * If the config has defined `debugLogs` as `false`, no logs will be shown.
416
+ */
417
+ debugLog: (...args: any[]) => void;
418
+ /**
419
+ * Get the model name which is expected to be saved in the database based on the user's schema.
420
+ */
421
+ getModelName: (model: string) => string;
422
+ /**
423
+ * Get the field name which is expected to be saved in the database based on the user's schema.
424
+ */
425
+ getFieldName: ({
426
+ model,
427
+ field
428
+ }: {
429
+ model: string;
430
+ field: string;
431
+ }) => string;
432
+ /**
433
+ * This function helps us get the default model name from the schema defined by devs.
434
+ * Often times, the user will be using the `modelName` which could had been customized by the users.
435
+ * This function helps us get the actual model name useful to match against the schema. (eg: schema[model])
436
+ *
437
+ * If it's still unclear what this does:
438
+ *
439
+ * 1. User can define a custom modelName.
440
+ * 2. When using a custom modelName, doing something like `schema[model]` will not work.
441
+ * 3. Using this function helps us get the actual model name based on the user's defined custom modelName.
442
+ * 4. Thus allowing us to use `schema[model]`.
443
+ */
444
+ getDefaultModelName: (model: string) => string;
445
+ /**
446
+ * This function helps us get the default field name from the schema defined by devs.
447
+ * Often times, the user will be using the `fieldName` which could had been customized by the users.
448
+ * This function helps us get the actual field name useful to match against the schema. (eg: schema[model].fields[field])
449
+ *
450
+ * If it's still unclear what this does:
451
+ *
452
+ * 1. User can define a custom fieldName.
453
+ * 2. When using a custom fieldName, doing something like `schema[model].fields[field]` will not work.
454
+ *
455
+ */
456
+ getDefaultFieldName: ({
457
+ model,
458
+ field
459
+ }: {
460
+ model: string;
461
+ field: string;
462
+ }) => string;
463
+ /**
464
+ * Get the field attributes for a given model and field.
465
+ *
466
+ * Note: any model name or field name is allowed, whether default to schema or not.
467
+ */
468
+ getFieldAttributes: ({
469
+ model,
470
+ field
471
+ }: {
472
+ model: string;
473
+ field: string;
474
+ }) => DBFieldAttribute;
475
+ transformInput: (data: Record<string, any>, defaultModelName: string, action: "create" | "update", forceAllowId?: boolean | undefined) => Promise<Record<string, any>>;
476
+ transformOutput: (data: Record<string, any>, defaultModelName: string, select?: string[] | undefined, joinConfig?: JoinConfig | undefined) => Promise<Record<string, any>>;
477
+ transformWhereClause: <W extends Where[] | undefined>({
478
+ model,
479
+ where
480
+ }: {
481
+ where: W;
482
+ model: string;
483
+ }) => W extends undefined ? undefined : CleanedWhere$1[];
484
+ }) => CustomAdapter$1;
485
+ /**
486
+ * @deprecated Use `CustomAdapter` from `@better-auth/core/db/adapter` instead.
487
+ */
488
+ interface CustomAdapter$1 extends Omit<CustomAdapter, "createSchema"> {
489
+ createSchema?: ((props: {
490
+ /**
491
+ * The file the user may have passed in to the `generate` command as the expected schema file output path.
492
+ */
493
+ file?: string;
494
+ /**
495
+ * The tables from the user's Better-Auth instance schema.
496
+ */
497
+ tables: BetterAuthDBSchema;
498
+ }) => Promise<DBAdapterSchemaCreation>) | undefined;
499
+ }
500
+ /**
501
+ * @deprecated Use `CleanedWhere` from `@better-auth/core/db/adapter` instead.
502
+ */
503
+ type CleanedWhere$1 = Prettify<Required<Where>>;
504
+ type AdapterTestDebugLogs = {
505
+ resetDebugLogs: () => void;
506
+ printDebugLogs: () => void;
507
+ };
508
+ /**
509
+ * @deprecated Use `AdapterFactoryOptions` instead. This export will be removed in a future version.
510
+ */
511
+ type CreateAdapterOptions = AdapterFactoryOptions;
512
+ /**
513
+ * @deprecated Use `AdapterFactoryConfig` instead. This export will be removed in a future version.
514
+ */
515
+ type AdapterConfig = AdapterFactoryConfig;
516
+ /**
517
+ * @deprecated Use `AdapterFactoryCustomizeAdapterCreator` instead. This export will be removed in a future version.
518
+ */
519
+ type CreateCustomAdapter = AdapterFactoryCustomizeAdapterCreator;
520
+ //#endregion
521
+ //#region src/db/adapter/factory.d.ts
522
+ type AdapterFactory = (options: BetterAuthOptions) => DBAdapter<BetterAuthOptions>;
523
+ declare const createAdapterFactory: ({
524
+ adapter: customAdapter,
525
+ config: cfg
526
+ }: AdapterFactoryOptions) => AdapterFactory;
527
+ /**
528
+ * @deprecated Use `createAdapterFactory` instead. This export will be removed in a future version.
529
+ * @alias
530
+ */
531
+ declare const createAdapter: ({
532
+ adapter: customAdapter,
533
+ config: cfg
534
+ }: AdapterFactoryOptions) => AdapterFactory;
535
+ //#endregion
536
+ //#region src/db/adapter/utils.d.ts
537
+ declare function withApplyDefault(value: any, field: DBFieldAttribute, action: "create" | "update" | "findOne" | "findMany"): any;
538
+ declare function deepmerge<T>(target: T, source: Partial<T>): T;
539
+ //#endregion
278
540
  //#region src/db/adapter/index.d.ts
279
541
  type DBAdapterDebugLogOption = boolean | {
280
542
  /**
@@ -380,6 +642,14 @@ interface DBAdapterFactoryConfig<Options extends BetterAuthOptions = BetterAuthO
380
642
  * @default true
381
643
  */
382
644
  supportsBooleans?: boolean | undefined;
645
+ /**
646
+ * If the database doesn't support arrays, set this to `false`.
647
+ *
648
+ * We will handle the translation between using `array`s, and saving `string`s to the database.
649
+ *
650
+ * @default false
651
+ */
652
+ supportsArrays?: boolean | undefined;
383
653
  /**
384
654
  * Execute multiple operations in a transaction.
385
655
  *
@@ -901,7 +1171,7 @@ type ProviderOptions<Profile$1 extends Record<string, any> = any> = {
901
1171
  [key: string]: any;
902
1172
  };
903
1173
  data: any;
904
- }>) | undefined;
1174
+ } | null>) | undefined;
905
1175
  /**
906
1176
  * Custom function to refresh a token
907
1177
  */
@@ -2019,6 +2289,7 @@ declare const google: (options: GoogleOptions) => {
2019
2289
  } | null>;
2020
2290
  options: GoogleOptions;
2021
2291
  };
2292
+ declare const getGooglePublicKey: (kid: string) => Promise<Uint8Array<ArrayBufferLike> | CryptoKey>;
2022
2293
  //#endregion
2023
2294
  //#region src/social-providers/huggingface.d.ts
2024
2295
  interface HuggingFaceProfile {
@@ -5899,11 +6170,6 @@ type SocialProviders = { [K in SocialProviderList[number]]?: Parameters<(typeof
5899
6170
  } };
5900
6171
  type SocialProviderList = typeof socialProviderList;
5901
6172
  //#endregion
5902
- //#region src/types/helper.d.ts
5903
- type Primitive = string | number | symbol | bigint | boolean | null | undefined;
5904
- type LiteralString = "" | (string & Record<never, never>);
5905
- type LiteralUnion<LiteralType, BaseType extends Primitive> = LiteralType | (BaseType & Record<never, never>);
5906
- //#endregion
5907
6173
  //#region src/types/plugin.d.ts
5908
6174
  type Awaitable<T> = T | Promise<T>;
5909
6175
  type DeepPartial<T> = T extends Function ? T : T extends object ? { [K in keyof T]?: DeepPartial<T[K]> } : T;
@@ -6901,13 +7167,13 @@ type BetterAuthOptions = {
6901
7167
  * if the hook returns false, the user will not be created.
6902
7168
  * If the hook returns an object, it'll be used instead of the original data
6903
7169
  */
6904
- before?: (user: User & Record<string, unknown>, context?: GenericEndpointContext) => Promise<boolean | void | {
7170
+ before?: (user: User & Record<string, unknown>, context: GenericEndpointContext | null) => Promise<boolean | void | {
6905
7171
  data: Optional<User> & Record<string, any>;
6906
7172
  }>;
6907
7173
  /**
6908
7174
  * Hook that is called after a user is created.
6909
7175
  */
6910
- after?: (user: User & Record<string, unknown>, context?: GenericEndpointContext) => Promise<void>;
7176
+ after?: (user: User & Record<string, unknown>, context: GenericEndpointContext | null) => Promise<void>;
6911
7177
  };
6912
7178
  update?: {
6913
7179
  /**
@@ -6915,24 +7181,24 @@ type BetterAuthOptions = {
6915
7181
  * if the hook returns false, the user will not be updated.
6916
7182
  * If the hook returns an object, it'll be used instead of the original data
6917
7183
  */
6918
- before?: (user: Partial<User> & Record<string, unknown>, context?: GenericEndpointContext) => Promise<boolean | void | {
7184
+ before?: (user: Partial<User> & Record<string, unknown>, context: GenericEndpointContext | null) => Promise<boolean | void | {
6919
7185
  data: Optional<User & Record<string, any>>;
6920
7186
  }>;
6921
7187
  /**
6922
7188
  * Hook that is called after a user is updated.
6923
7189
  */
6924
- after?: (user: User & Record<string, unknown>, context?: GenericEndpointContext) => Promise<void>;
7190
+ after?: (user: User & Record<string, unknown>, context: GenericEndpointContext | null) => Promise<void>;
6925
7191
  };
6926
7192
  delete?: {
6927
7193
  /**
6928
7194
  * Hook that is called before a user is deleted.
6929
7195
  * if the hook returns false, the user will not be deleted.
6930
7196
  */
6931
- before?: (user: User & Record<string, unknown>, context?: GenericEndpointContext) => Promise<boolean | void>;
7197
+ before?: (user: User & Record<string, unknown>, context: GenericEndpointContext | null) => Promise<boolean | void>;
6932
7198
  /**
6933
7199
  * Hook that is called after a user is deleted.
6934
7200
  */
6935
- after?: (user: User & Record<string, unknown>, context?: GenericEndpointContext) => Promise<void>;
7201
+ after?: (user: User & Record<string, unknown>, context: GenericEndpointContext | null) => Promise<void>;
6936
7202
  };
6937
7203
  };
6938
7204
  /**
@@ -6945,13 +7211,13 @@ type BetterAuthOptions = {
6945
7211
  * if the hook returns false, the session will not be created.
6946
7212
  * If the hook returns an object, it'll be used instead of the original data
6947
7213
  */
6948
- before?: (session: Session & Record<string, unknown>, context?: GenericEndpointContext) => Promise<boolean | void | {
7214
+ before?: (session: Session & Record<string, unknown>, context: GenericEndpointContext | null) => Promise<boolean | void | {
6949
7215
  data: Optional<Session> & Record<string, any>;
6950
7216
  }>;
6951
7217
  /**
6952
7218
  * Hook that is called after a session is created.
6953
7219
  */
6954
- after?: (session: Session & Record<string, unknown>, context?: GenericEndpointContext) => Promise<void>;
7220
+ after?: (session: Session & Record<string, unknown>, context: GenericEndpointContext | null) => Promise<void>;
6955
7221
  };
6956
7222
  /**
6957
7223
  * Update hook
@@ -6962,24 +7228,24 @@ type BetterAuthOptions = {
6962
7228
  * if the hook returns false, the session will not be updated.
6963
7229
  * If the hook returns an object, it'll be used instead of the original data
6964
7230
  */
6965
- before?: (session: Partial<Session> & Record<string, unknown>, context?: GenericEndpointContext) => Promise<boolean | void | {
7231
+ before?: (session: Partial<Session> & Record<string, unknown>, context: GenericEndpointContext | null) => Promise<boolean | void | {
6966
7232
  data: Optional<Session & Record<string, any>>;
6967
7233
  }>;
6968
7234
  /**
6969
7235
  * Hook that is called after a session is updated.
6970
7236
  */
6971
- after?: (session: Session & Record<string, unknown>, context?: GenericEndpointContext) => Promise<void>;
7237
+ after?: (session: Session & Record<string, unknown>, context: GenericEndpointContext | null) => Promise<void>;
6972
7238
  };
6973
7239
  delete?: {
6974
7240
  /**
6975
7241
  * Hook that is called before a session is deleted.
6976
7242
  * if the hook returns false, the session will not be deleted.
6977
7243
  */
6978
- before?: (session: Session & Record<string, unknown>, context?: GenericEndpointContext) => Promise<boolean | void>;
7244
+ before?: (session: Session & Record<string, unknown>, context: GenericEndpointContext | null) => Promise<boolean | void>;
6979
7245
  /**
6980
7246
  * Hook that is called after a session is deleted.
6981
7247
  */
6982
- after?: (session: Session & Record<string, unknown>, context?: GenericEndpointContext) => Promise<void>;
7248
+ after?: (session: Session & Record<string, unknown>, context: GenericEndpointContext | null) => Promise<void>;
6983
7249
  };
6984
7250
  };
6985
7251
  /**
@@ -6992,13 +7258,13 @@ type BetterAuthOptions = {
6992
7258
  * If the hook returns false, the account will not be created.
6993
7259
  * If the hook returns an object, it'll be used instead of the original data
6994
7260
  */
6995
- before?: (account: Account, context?: GenericEndpointContext) => Promise<boolean | void | {
7261
+ before?: (account: Account, context: GenericEndpointContext | null) => Promise<boolean | void | {
6996
7262
  data: Optional<Account> & Record<string, any>;
6997
7263
  }>;
6998
7264
  /**
6999
7265
  * Hook that is called after a account is created.
7000
7266
  */
7001
- after?: (account: Account, context?: GenericEndpointContext) => Promise<void>;
7267
+ after?: (account: Account, context: GenericEndpointContext | null) => Promise<void>;
7002
7268
  };
7003
7269
  /**
7004
7270
  * Update hook
@@ -7009,24 +7275,24 @@ type BetterAuthOptions = {
7009
7275
  * If the hook returns false, the user will not be updated.
7010
7276
  * If the hook returns an object, it'll be used instead of the original data
7011
7277
  */
7012
- before?: (account: Partial<Account> & Record<string, unknown>, context?: GenericEndpointContext) => Promise<boolean | void | {
7278
+ before?: (account: Partial<Account> & Record<string, unknown>, context: GenericEndpointContext | null) => Promise<boolean | void | {
7013
7279
  data: Optional<Account & Record<string, any>>;
7014
7280
  }>;
7015
7281
  /**
7016
7282
  * Hook that is called after a account is updated.
7017
7283
  */
7018
- after?: (account: Account & Record<string, unknown>, context?: GenericEndpointContext) => Promise<void>;
7284
+ after?: (account: Account & Record<string, unknown>, context: GenericEndpointContext | null) => Promise<void>;
7019
7285
  };
7020
7286
  delete?: {
7021
7287
  /**
7022
7288
  * Hook that is called before an account is deleted.
7023
7289
  * if the hook returns false, the account will not be deleted.
7024
7290
  */
7025
- before?: (account: Account & Record<string, unknown>, context?: GenericEndpointContext) => Promise<boolean | void>;
7291
+ before?: (account: Account & Record<string, unknown>, context: GenericEndpointContext | null) => Promise<boolean | void>;
7026
7292
  /**
7027
7293
  * Hook that is called after an account is deleted.
7028
7294
  */
7029
- after?: (account: Account & Record<string, unknown>, context?: GenericEndpointContext) => Promise<void>;
7295
+ after?: (account: Account & Record<string, unknown>, context: GenericEndpointContext | null) => Promise<void>;
7030
7296
  };
7031
7297
  };
7032
7298
  /**
@@ -7039,13 +7305,13 @@ type BetterAuthOptions = {
7039
7305
  * if the hook returns false, the verification will not be created.
7040
7306
  * If the hook returns an object, it'll be used instead of the original data
7041
7307
  */
7042
- before?: (verification: Verification & Record<string, unknown>, context?: GenericEndpointContext) => Promise<boolean | void | {
7308
+ before?: (verification: Verification & Record<string, unknown>, context: GenericEndpointContext | null) => Promise<boolean | void | {
7043
7309
  data: Optional<Verification> & Record<string, any>;
7044
7310
  }>;
7045
7311
  /**
7046
7312
  * Hook that is called after a verification is created.
7047
7313
  */
7048
- after?: (verification: Verification & Record<string, unknown>, context?: GenericEndpointContext) => Promise<void>;
7314
+ after?: (verification: Verification & Record<string, unknown>, context: GenericEndpointContext | null) => Promise<void>;
7049
7315
  };
7050
7316
  update?: {
7051
7317
  /**
@@ -7053,24 +7319,24 @@ type BetterAuthOptions = {
7053
7319
  * if the hook returns false, the verification will not be updated.
7054
7320
  * If the hook returns an object, it'll be used instead of the original data
7055
7321
  */
7056
- before?: (verification: Partial<Verification> & Record<string, unknown>, context?: GenericEndpointContext) => Promise<boolean | void | {
7322
+ before?: (verification: Partial<Verification> & Record<string, unknown>, context: GenericEndpointContext | null) => Promise<boolean | void | {
7057
7323
  data: Optional<Verification & Record<string, any>>;
7058
7324
  }>;
7059
7325
  /**
7060
7326
  * Hook that is called after a verification is updated.
7061
7327
  */
7062
- after?: (verification: Verification & Record<string, unknown>, context?: GenericEndpointContext) => Promise<void>;
7328
+ after?: (verification: Verification & Record<string, unknown>, context: GenericEndpointContext | null) => Promise<void>;
7063
7329
  };
7064
7330
  delete?: {
7065
7331
  /**
7066
7332
  * Hook that is called before a verification is deleted.
7067
7333
  * if the hook returns false, the verification will not be deleted.
7068
7334
  */
7069
- before?: (verification: Verification & Record<string, unknown>, context?: GenericEndpointContext) => Promise<boolean | void>;
7335
+ before?: (verification: Verification & Record<string, unknown>, context: GenericEndpointContext | null) => Promise<boolean | void>;
7070
7336
  /**
7071
7337
  * Hook that is called after a verification is deleted.
7072
7338
  */
7073
- after?: (verification: Verification & Record<string, unknown>, context?: GenericEndpointContext) => Promise<void>;
7339
+ after?: (verification: Verification & Record<string, unknown>, context: GenericEndpointContext | null) => Promise<void>;
7074
7340
  };
7075
7341
  };
7076
7342
  } | undefined;
@@ -7257,6 +7523,15 @@ type AuthContext<Options extends BetterAuthOptions = BetterAuthOptions> = {
7257
7523
  appName: string;
7258
7524
  baseURL: string;
7259
7525
  trustedOrigins: string[];
7526
+ /**
7527
+ * Verifies whether url is a trusted origin according to the "trustedOrigins" configuration
7528
+ * @param url The url to verify against the "trustedOrigins" configuration
7529
+ * @param settings Specify supported pattern matching settings
7530
+ * @returns {boolean} true if the URL matches the origin pattern, false otherwise.
7531
+ */
7532
+ isTrustedOrigin: (url: string, settings?: {
7533
+ allowRelativePaths: boolean;
7534
+ }) => boolean;
7260
7535
  oauthConfig: {
7261
7536
  /**
7262
7537
  * This is dangerous and should only be used in dev or staging environments.
@@ -7473,4 +7748,4 @@ declare const createAuthEndpoint: <Path extends string, Opts extends EndpointOpt
7473
7748
  type AuthEndpoint = ReturnType<typeof createAuthEndpoint>;
7474
7749
  type AuthMiddleware = ReturnType<typeof createAuthMiddleware>;
7475
7750
  //#endregion
7476
- export { NotionProfile as $, JoinConfig as $n, huggingface as $t, VercelProfile as A, BetterAuthCookies as An, LinearProfile as At, PaybinProfile as B, createClientCredentialsTokenRequest as Bn, TwitterProfile as Bt, SocialProvider as C, AtlassianProfile as Cn, DBFieldAttributeConfig as Cr, GitlabOptions as Ct, socialProviderList as D, AppleProfile as Dn, SecondaryStorage as Dr, LinkedInProfile as Dt, SocialProviders as E, AppleOptions as En, ModelNames as Er, LinkedInOptions as Et, PayPalOptions as F, getOAuth2Tokens as Fn, kick as Ft, line as G, CleanedWhere as Gn, SpotifyOptions as Gt, LineIdTokenPayload as H, OAuth2UserInfo as Hn, TwitchOptions as Ht, PayPalProfile as I, createRefreshAccessTokenRequest as In, DropboxOptions as It, naver as J, DBAdapterDebugLogOption as Jn, SlackOptions as Jt, NaverOptions as K, CustomAdapter as Kn, SpotifyProfile as Kt, PayPalTokenResponse as L, refreshAccessToken as Ln, DropboxProfile as Lt, PolarOptions as M, validateAuthorizationCode as Mn, linear as Mt, PolarProfile as N, validateToken as Nn, KickOptions as Nt, socialProviders as O, apple as On, linkedin as Ot, polar as P, generateCodeChallenge as Pn, KickProfile as Pt, NotionOptions as Q, DBTransactionAdapter as Qn, HuggingFaceProfile as Qt, paypal as R, createAuthorizationURL as Rn, dropbox as Rt, LiteralUnion as S, AtlassianOptions as Sn, DBFieldAttribute as Sr, tiktok as St, SocialProviderListEnum as T, AppleNonConformUser as Tn, DBPrimitive as Tr, gitlab as Tt, LineOptions as U, OAuthProvider as Un, TwitchProfile as Ut, paybin as V, OAuth2Tokens as Vn, twitter as Vt, LineUserInfo as W, ProviderOptions as Wn, twitch as Wt, KakaoProfile as X, DBAdapterInstance as Xn, slack as Xt, KakaoOptions as Y, DBAdapterFactoryConfig as Yn, SlackProfile as Yt, kakao as Z, DBAdapterSchemaCreation as Zn, HuggingFaceOptions as Zt, BetterAuthRateLimitOptions as _, discord as _n, Account as _r, RedditOptions as _t, optionsMiddleware as a, microsoft as an, FieldAttributeConfig as ar, ZoomOptions as at, HookEndpointContext as b, cognito as bn, BaseModelNames as br, TiktokOptions as bt, BetterAuthClientPlugin as c, github as cn, Verification as cr, VkOption as ct, ClientStore as d, figma as dn, userSchema as dr, SalesforceOptions as dt, GoogleOptions as en, JoinOption as er, notion as et, AuthContext as f, FacebookOptions as fn, coreSchema as fr, SalesforceProfile as ft, BetterAuthOptions as g, DiscordProfile as gn, rateLimitSchema as gr, roblox as gt, BetterAuthAdvancedOptions as h, DiscordOptions as hn, RateLimit as hr, RobloxProfile as ht, createAuthMiddleware as i, MicrosoftOptions as in, FieldAttribute as ir, PronounOption as it, vercel as j, createAuthorizationCodeRequest as jn, LinearUser as jt, VercelOptions as k, getApplePublicKey as kn, LinearOptions as kt, ClientAtomListener as l, FigmaOptions as ln, verificationSchema as lr, VkProfile as lt, InternalAdapter as m, facebook as mn, sessionSchema as mr, RobloxOptions as mt, AuthMiddleware as n, google as nn, AuthPluginSchema as nr, LoginType as nt, StandardSchemaV1$1 as o, GithubOptions as on, FieldType as or, ZoomProfile as ot, GenericEndpointContext as p, FacebookProfile as pn, Session as pr, salesforce as pt, NaverProfile as q, DBAdapter as qn, spotify as qt, createAuthEndpoint as r, MicrosoftEntraIDProfile as rn, BetterAuthDbSchema as rr, PhoneNumber as rt, BetterAuthClientOptions as s, GithubProfile as sn, Primitive$1 as sr, zoom as st, AuthEndpoint as t, GoogleProfile as tn, Where as tr, AccountStatus as tt, ClientFetchOption as u, FigmaProfile as un, User as ur, vk as ut, GenerateIdFn as v, CognitoOptions as vn, accountSchema as vr, RedditProfile as vt, SocialProviderList as w, atlassian as wn, DBFieldType as wr, GitlabProfile as wt, LiteralString as x, getCognitoPublicKey as xn, BetterAuthDBSchema as xr, TiktokProfile as xt, BetterAuthPlugin as y, CognitoProfile as yn, BetterAuthPluginDBSchema as yr, reddit as yt, PaybinOptions as z, clientCredentialsToken as zn, TwitterOption as zt };
7751
+ export { AccountStatus as $, JoinOption as $n, GoogleProfile as $t, PolarOptions as A, createAuthorizationCodeRequest as An, verificationSchema as Ar, linear as At, LineIdTokenPayload as B, OAuth2Tokens as Bn, BetterAuthPluginDBSchema as Br, TwitchOptions as Bt, SocialProviderListEnum as C, atlassian as Cn, BetterAuthDbSchema as Cr, gitlab as Ct, VercelOptions as D, apple as Dn, Primitive$1 as Dr, LinearOptions as Dt, socialProviders as E, AppleProfile as En, FieldType as Er, linkedin as Et, PayPalTokenResponse as F, createRefreshAccessTokenRequest as Fn, sessionSchema as Fr, DropboxProfile as Ft, NaverProfile as G, CustomAdapter as Gn, DBFieldType as Gr, spotify as Gt, LineUserInfo as H, OAuthProvider as Hn, BetterAuthDBSchema as Hr, twitch as Ht, paypal as I, refreshAccessToken as In, RateLimit as Ir, dropbox as It, KakaoProfile as J, DBAdapterFactoryConfig as Jn, SecondaryStorage as Jr, slack as Jt, naver as K, DBAdapter as Kn, DBPrimitive as Kr, SlackOptions as Kt, PaybinOptions as L, createAuthorizationURL as Ln, rateLimitSchema as Lr, TwitterOption as Lt, polar as M, validateToken as Mn, userSchema as Mr, KickProfile as Mt, PayPalOptions as N, generateCodeChallenge as Nn, coreSchema as Nr, kick as Nt, VercelProfile as O, getApplePublicKey as On, getAuthTables as Or, LinearProfile as Ot, PayPalProfile as P, getOAuth2Tokens as Pn, Session as Pr, DropboxOptions as Pt, notion as Q, JoinConfig as Qn, GoogleOptions as Qt, PaybinProfile as R, clientCredentialsToken as Rn, Account as Rr, TwitterProfile as Rt, SocialProviderList as S, AtlassianProfile as Sn, AuthPluginSchema as Sr, GitlabProfile as St, socialProviderList as T, AppleOptions as Tn, FieldAttributeConfig as Tr, LinkedInProfile as Tt, line as U, ProviderOptions as Un, DBFieldAttribute as Ur, SpotifyOptions as Ut, LineOptions as V, OAuth2UserInfo as Vn, BaseModelNames as Vr, TwitchProfile as Vt, NaverOptions as W, CleanedWhere as Wn, DBFieldAttributeConfig as Wr, SpotifyProfile as Wt, NotionOptions as X, DBAdapterSchemaCreation as Xn, HuggingFaceProfile as Xt, kakao as Y, DBAdapterInstance as Yn, HuggingFaceOptions as Yt, NotionProfile as Z, DBTransactionAdapter as Zn, huggingface as Zt, BetterAuthRateLimitOptions as _, CognitoOptions as _n, initGetIdField as _r, reddit as _t, optionsMiddleware as a, GithubOptions as an, createAdapterFactory as ar, zoom as at, HookEndpointContext as b, getCognitoPublicKey as bn, initGetDefaultModelName as br, tiktok as bt, BetterAuthClientPlugin as c, FigmaOptions as cn, AdapterFactoryCustomizeAdapterCreator as cr, vk as ct, ClientStore as d, FacebookOptions as dn, CreateAdapterOptions as dr, salesforce as dt, getGooglePublicKey as en, Where as er, LoginType as et, AuthContext as f, FacebookProfile as fn, CreateCustomAdapter as fr, RobloxOptions as ft, BetterAuthOptions as g, discord as gn, initGetModelName as gr, RedditProfile as gt, BetterAuthAdvancedOptions as h, DiscordProfile as hn, Prettify as hr, RedditOptions as ht, createAuthMiddleware as i, microsoft as in, createAdapter as ir, ZoomProfile as it, PolarProfile as j, validateAuthorizationCode as jn, User as jr, KickOptions as jt, vercel as k, BetterAuthCookies as kn, Verification as kr, LinearUser as kt, ClientAtomListener as l, FigmaProfile as ln, AdapterFactoryOptions as lr, SalesforceOptions as lt, InternalAdapter as m, DiscordOptions as mn, LiteralUnion as mr, roblox as mt, AuthMiddleware as n, MicrosoftEntraIDProfile as nn, withApplyDefault as nr, PronounOption as nt, StandardSchemaV1$1 as o, GithubProfile as on, AdapterConfig as or, VkOption as ot, GenericEndpointContext as p, facebook as pn, LiteralString as pr, RobloxProfile as pt, KakaoOptions as q, DBAdapterDebugLogOption as qn, ModelNames as qr, SlackProfile as qt, createAuthEndpoint as r, MicrosoftOptions as rn, AdapterFactory as rr, ZoomOptions as rt, BetterAuthClientOptions as s, github as sn, AdapterFactoryConfig as sr, VkProfile as st, AuthEndpoint as t, google as tn, deepmerge as tr, PhoneNumber as tt, ClientFetchOption as u, figma as un, AdapterTestDebugLogs as ur, SalesforceProfile as ut, GenerateIdFn as v, CognitoProfile as vn, initGetFieldName as vr, TiktokOptions as vt, SocialProviders as w, AppleNonConformUser as wn, FieldAttribute as wr, LinkedInOptions as wt, SocialProvider as x, AtlassianOptions as xn, initGetDefaultFieldName as xr, GitlabOptions as xt, BetterAuthPlugin as y, cognito as yn, initGetFieldAttributes as yr, TiktokProfile as yt, paybin as z, createClientCredentialsTokenRequest as zn, accountSchema as zr, twitter as zt };
@@ -1,7 +1,6 @@
1
1
  import { AsyncLocalStorage } from "node:async_hooks";
2
2
 
3
3
  //#region src/async_hooks/index.d.ts
4
-
5
4
  declare function getAsyncLocalStorage(): Promise<typeof AsyncLocalStorage>;
6
5
  //#endregion
7
6
  export { getAsyncLocalStorage as n, AsyncLocalStorage as t };
package/dist/index.d.mts CHANGED
@@ -1,3 +1,2 @@
1
- import { An as BetterAuthCookies, S as LiteralUnion, _ as BetterAuthRateLimitOptions, b as HookEndpointContext, c as BetterAuthClientPlugin, d as ClientStore, f as AuthContext, g as BetterAuthOptions, h as BetterAuthAdvancedOptions, l as ClientAtomListener, m as InternalAdapter, o as StandardSchemaV1, p as GenericEndpointContext, s as BetterAuthClientOptions, u as ClientFetchOption, v as GenerateIdFn, x as LiteralString, y as BetterAuthPlugin } from "./index-D_XSRX55.mjs";
2
- import "./index-X1Fs3IbM.mjs";
3
- export { AuthContext, BetterAuthAdvancedOptions, BetterAuthClientOptions, BetterAuthClientPlugin, BetterAuthCookies, BetterAuthOptions, BetterAuthPlugin, BetterAuthRateLimitOptions, ClientAtomListener, ClientFetchOption, ClientStore, GenerateIdFn, GenericEndpointContext, HookEndpointContext, InternalAdapter, LiteralString, LiteralUnion, StandardSchemaV1 };
1
+ import { _ as BetterAuthRateLimitOptions, b as HookEndpointContext, c as BetterAuthClientPlugin, d as ClientStore, f as AuthContext, g as BetterAuthOptions, h as BetterAuthAdvancedOptions, hr as Prettify, kn as BetterAuthCookies, l as ClientAtomListener, m as InternalAdapter, mr as LiteralUnion, o as StandardSchemaV1, p as GenericEndpointContext, pr as LiteralString, s as BetterAuthClientOptions, u as ClientFetchOption, v as GenerateIdFn, y as BetterAuthPlugin } from "./index-Bp1Bfmzt.mjs";
2
+ export { AuthContext, BetterAuthAdvancedOptions, BetterAuthClientOptions, BetterAuthClientPlugin, BetterAuthCookies, BetterAuthOptions, BetterAuthPlugin, BetterAuthRateLimitOptions, ClientAtomListener, ClientFetchOption, ClientStore, GenerateIdFn, GenericEndpointContext, HookEndpointContext, InternalAdapter, LiteralString, LiteralUnion, Prettify, StandardSchemaV1 };
@@ -1,3 +1,2 @@
1
- import { Bn as createClientCredentialsTokenRequest, Fn as getOAuth2Tokens, Hn as OAuth2UserInfo, In as createRefreshAccessTokenRequest, Ln as refreshAccessToken, Mn as validateAuthorizationCode, Nn as validateToken, Pn as generateCodeChallenge, Rn as createAuthorizationURL, Un as OAuthProvider, Vn as OAuth2Tokens, Wn as ProviderOptions, jn as createAuthorizationCodeRequest, zn as clientCredentialsToken } from "../index-D_XSRX55.mjs";
2
- import "../index-X1Fs3IbM.mjs";
1
+ import { An as createAuthorizationCodeRequest, Bn as OAuth2Tokens, Fn as createRefreshAccessTokenRequest, Hn as OAuthProvider, In as refreshAccessToken, Ln as createAuthorizationURL, Mn as validateToken, Nn as generateCodeChallenge, Pn as getOAuth2Tokens, Rn as clientCredentialsToken, Un as ProviderOptions, Vn as OAuth2UserInfo, jn as validateAuthorizationCode, zn as createClientCredentialsTokenRequest } from "../index-Bp1Bfmzt.mjs";
3
2
  export { OAuth2Tokens, OAuth2UserInfo, OAuthProvider, ProviderOptions, clientCredentialsToken, createAuthorizationCodeRequest, createAuthorizationURL, createClientCredentialsTokenRequest, createRefreshAccessTokenRequest, generateCodeChallenge, getOAuth2Tokens, refreshAccessToken, validateAuthorizationCode, validateToken };
@@ -1,3 +1,3 @@
1
- import { a as refreshAccessToken, c as getOAuth2Tokens, i as createRefreshAccessTokenRequest, l as clientCredentialsToken, n as validateAuthorizationCode, o as createAuthorizationURL, r as validateToken, s as generateCodeChallenge, t as createAuthorizationCodeRequest, u as createClientCredentialsTokenRequest } from "../oauth2-B2XPHgx5.mjs";
1
+ import { a as refreshAccessToken, c as getOAuth2Tokens, i as createRefreshAccessTokenRequest, l as clientCredentialsToken, n as validateAuthorizationCode, o as createAuthorizationURL, r as validateToken, s as generateCodeChallenge, t as createAuthorizationCodeRequest, u as createClientCredentialsTokenRequest } from "../oauth2-7k48hhcV.mjs";
2
2
 
3
3
  export { clientCredentialsToken, createAuthorizationCodeRequest, createAuthorizationURL, createClientCredentialsTokenRequest, createRefreshAccessTokenRequest, generateCodeChallenge, getOAuth2Tokens, refreshAccessToken, validateAuthorizationCode, validateToken };
@@ -1,3 +1,2 @@
1
- import { $ as NotionProfile, $t as huggingface, A as VercelProfile, At as LinearProfile, B as PaybinProfile, Bt as TwitterProfile, C as SocialProvider, Cn as AtlassianProfile, Ct as GitlabOptions, D as socialProviderList, Dn as AppleProfile, Dt as LinkedInProfile, E as SocialProviders, En as AppleOptions, Et as LinkedInOptions, F as PayPalOptions, Ft as kick, G as line, Gt as SpotifyOptions, H as LineIdTokenPayload, Ht as TwitchOptions, I as PayPalProfile, It as DropboxOptions, J as naver, Jt as SlackOptions, K as NaverOptions, Kt as SpotifyProfile, L as PayPalTokenResponse, Lt as DropboxProfile, M as PolarOptions, Mt as linear, N as PolarProfile, Nt as KickOptions, O as socialProviders, On as apple, Ot as linkedin, P as polar, Pt as KickProfile, Q as NotionOptions, Qt as HuggingFaceProfile, R as paypal, Rt as dropbox, Sn as AtlassianOptions, St as tiktok, T as SocialProviderListEnum, Tn as AppleNonConformUser, Tt as gitlab, U as LineOptions, Ut as TwitchProfile, V as paybin, Vt as twitter, W as LineUserInfo, Wt as twitch, X as KakaoProfile, Xt as slack, Y as KakaoOptions, Yt as SlackProfile, Z as kakao, Zt as HuggingFaceOptions, _n as discord, _t as RedditOptions, an as microsoft, at as ZoomOptions, bn as cognito, bt as TiktokOptions, cn as github, ct as VkOption, dn as figma, dt as SalesforceOptions, en as GoogleOptions, et as notion, fn as FacebookOptions, ft as SalesforceProfile, gn as DiscordProfile, gt as roblox, hn as DiscordOptions, ht as RobloxProfile, in as MicrosoftOptions, it as PronounOption, j as vercel, jt as LinearUser, k as VercelOptions, kn as getApplePublicKey, kt as LinearOptions, ln as FigmaOptions, lt as VkProfile, mn as facebook, mt as RobloxOptions, nn as google, nt as LoginType, on as GithubOptions, ot as ZoomProfile, pn as FacebookProfile, pt as salesforce, q as NaverProfile, qt as spotify, rn as MicrosoftEntraIDProfile, rt as PhoneNumber, sn as GithubProfile, st as zoom, tn as GoogleProfile, tt as AccountStatus, un as FigmaProfile, ut as vk, vn as CognitoOptions, vt as RedditProfile, w as SocialProviderList, wn as atlassian, wt as GitlabProfile, xn as getCognitoPublicKey, xt as TiktokProfile, yn as CognitoProfile, yt as reddit, z as PaybinOptions, zt as TwitterOption } from "../index-D_XSRX55.mjs";
2
- import "../index-X1Fs3IbM.mjs";
3
- export { AccountStatus, AppleNonConformUser, AppleOptions, AppleProfile, AtlassianOptions, AtlassianProfile, CognitoOptions, CognitoProfile, DiscordOptions, DiscordProfile, DropboxOptions, DropboxProfile, FacebookOptions, FacebookProfile, FigmaOptions, FigmaProfile, GithubOptions, GithubProfile, GitlabOptions, GitlabProfile, GoogleOptions, GoogleProfile, HuggingFaceOptions, HuggingFaceProfile, KakaoOptions, KakaoProfile, KickOptions, KickProfile, LineIdTokenPayload, LineOptions, LineUserInfo, LinearOptions, LinearProfile, LinearUser, LinkedInOptions, LinkedInProfile, LoginType, MicrosoftEntraIDProfile, MicrosoftOptions, NaverOptions, NaverProfile, NotionOptions, NotionProfile, PayPalOptions, PayPalProfile, PayPalTokenResponse, PaybinOptions, PaybinProfile, PhoneNumber, PolarOptions, PolarProfile, PronounOption, RedditOptions, RedditProfile, RobloxOptions, RobloxProfile, SalesforceOptions, SalesforceProfile, SlackOptions, SlackProfile, SocialProvider, SocialProviderList, SocialProviderListEnum, SocialProviders, SpotifyOptions, SpotifyProfile, TiktokOptions, TiktokProfile, TwitchOptions, TwitchProfile, TwitterOption, TwitterProfile, VercelOptions, VercelProfile, VkOption, VkProfile, ZoomOptions, ZoomProfile, apple, atlassian, cognito, discord, dropbox, facebook, figma, getApplePublicKey, getCognitoPublicKey, github, gitlab, google, huggingface, kakao, kick, line, linear, linkedin, microsoft, naver, notion, paybin, paypal, polar, reddit, roblox, salesforce, slack, socialProviderList, socialProviders, spotify, tiktok, twitch, twitter, vercel, vk, zoom };
1
+ import { $ as AccountStatus, $t as GoogleProfile, A as PolarOptions, At as linear, B as LineIdTokenPayload, Bt as TwitchOptions, C as SocialProviderListEnum, Cn as atlassian, Ct as gitlab, D as VercelOptions, Dn as apple, Dt as LinearOptions, E as socialProviders, En as AppleProfile, Et as linkedin, F as PayPalTokenResponse, Ft as DropboxProfile, G as NaverProfile, Gt as spotify, H as LineUserInfo, Ht as twitch, I as paypal, It as dropbox, J as KakaoProfile, Jt as slack, K as naver, Kt as SlackOptions, L as PaybinOptions, Lt as TwitterOption, M as polar, Mt as KickProfile, N as PayPalOptions, Nt as kick, O as VercelProfile, On as getApplePublicKey, Ot as LinearProfile, P as PayPalProfile, Pt as DropboxOptions, Q as notion, Qt as GoogleOptions, R as PaybinProfile, Rt as TwitterProfile, S as SocialProviderList, Sn as AtlassianProfile, St as GitlabProfile, T as socialProviderList, Tn as AppleOptions, Tt as LinkedInProfile, U as line, Ut as SpotifyOptions, V as LineOptions, Vt as TwitchProfile, W as NaverOptions, Wt as SpotifyProfile, X as NotionOptions, Xt as HuggingFaceProfile, Y as kakao, Yt as HuggingFaceOptions, Z as NotionProfile, Zt as huggingface, _n as CognitoOptions, _t as reddit, an as GithubOptions, at as zoom, bn as getCognitoPublicKey, bt as tiktok, cn as FigmaOptions, ct as vk, dn as FacebookOptions, dt as salesforce, en as getGooglePublicKey, et as LoginType, fn as FacebookProfile, ft as RobloxOptions, gn as discord, gt as RedditProfile, hn as DiscordProfile, ht as RedditOptions, in as microsoft, it as ZoomProfile, j as PolarProfile, jt as KickOptions, k as vercel, kt as LinearUser, ln as FigmaProfile, lt as SalesforceOptions, mn as DiscordOptions, mt as roblox, nn as MicrosoftEntraIDProfile, nt as PronounOption, on as GithubProfile, ot as VkOption, pn as facebook, pt as RobloxProfile, q as KakaoOptions, qt as SlackProfile, rn as MicrosoftOptions, rt as ZoomOptions, sn as github, st as VkProfile, tn as google, tt as PhoneNumber, un as figma, ut as SalesforceProfile, vn as CognitoProfile, vt as TiktokOptions, w as SocialProviders, wn as AppleNonConformUser, wt as LinkedInOptions, x as SocialProvider, xn as AtlassianOptions, xt as GitlabOptions, yn as cognito, yt as TiktokProfile, z as paybin, zt as twitter } from "../index-Bp1Bfmzt.mjs";
2
+ export { AccountStatus, AppleNonConformUser, AppleOptions, AppleProfile, AtlassianOptions, AtlassianProfile, CognitoOptions, CognitoProfile, DiscordOptions, DiscordProfile, DropboxOptions, DropboxProfile, FacebookOptions, FacebookProfile, FigmaOptions, FigmaProfile, GithubOptions, GithubProfile, GitlabOptions, GitlabProfile, GoogleOptions, GoogleProfile, HuggingFaceOptions, HuggingFaceProfile, KakaoOptions, KakaoProfile, KickOptions, KickProfile, LineIdTokenPayload, LineOptions, LineUserInfo, LinearOptions, LinearProfile, LinearUser, LinkedInOptions, LinkedInProfile, LoginType, MicrosoftEntraIDProfile, MicrosoftOptions, NaverOptions, NaverProfile, NotionOptions, NotionProfile, PayPalOptions, PayPalProfile, PayPalTokenResponse, PaybinOptions, PaybinProfile, PhoneNumber, PolarOptions, PolarProfile, PronounOption, RedditOptions, RedditProfile, RobloxOptions, RobloxProfile, SalesforceOptions, SalesforceProfile, SlackOptions, SlackProfile, SocialProvider, SocialProviderList, SocialProviderListEnum, SocialProviders, SpotifyOptions, SpotifyProfile, TiktokOptions, TiktokProfile, TwitchOptions, TwitchProfile, TwitterOption, TwitterProfile, VercelOptions, VercelProfile, VkOption, VkProfile, ZoomOptions, ZoomProfile, apple, atlassian, cognito, discord, dropbox, facebook, figma, getApplePublicKey, getCognitoPublicKey, getGooglePublicKey, github, gitlab, google, huggingface, kakao, kick, line, linear, linkedin, microsoft, naver, notion, paybin, paypal, polar, reddit, roblox, salesforce, slack, socialProviderList, socialProviders, spotify, tiktok, twitch, twitter, vercel, vk, zoom };