better-auth 1.2.6-beta.7 → 1.2.7-beta.1
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/adapters/drizzle-adapter/index.cjs +186 -249
- package/dist/adapters/drizzle-adapter/index.d.cts +11 -49
- package/dist/adapters/drizzle-adapter/index.d.mts +11 -49
- package/dist/adapters/drizzle-adapter/index.d.ts +11 -49
- package/dist/adapters/drizzle-adapter/index.mjs +186 -249
- package/dist/adapters/index.cjs +26 -0
- package/dist/adapters/index.d.cts +17 -0
- package/dist/adapters/index.d.mts +17 -0
- package/dist/adapters/index.d.ts +17 -0
- package/dist/adapters/index.mjs +20 -0
- package/dist/adapters/kysely-adapter/index.cjs +7 -7
- package/dist/adapters/kysely-adapter/index.d.cts +17 -49
- package/dist/adapters/kysely-adapter/index.d.mts +17 -49
- package/dist/adapters/kysely-adapter/index.d.ts +17 -49
- package/dist/adapters/kysely-adapter/index.mjs +8 -8
- package/dist/adapters/memory-adapter/index.cjs +7 -8
- package/dist/adapters/memory-adapter/index.d.cts +9 -49
- package/dist/adapters/memory-adapter/index.d.mts +9 -49
- package/dist/adapters/memory-adapter/index.d.ts +9 -49
- package/dist/adapters/memory-adapter/index.mjs +8 -9
- package/dist/adapters/mongodb-adapter/index.cjs +2 -2
- package/dist/adapters/mongodb-adapter/index.d.cts +4 -4
- package/dist/adapters/mongodb-adapter/index.d.mts +4 -4
- package/dist/adapters/mongodb-adapter/index.d.ts +4 -4
- package/dist/adapters/mongodb-adapter/index.mjs +3 -3
- package/dist/adapters/prisma-adapter/index.cjs +130 -203
- package/dist/adapters/prisma-adapter/index.d.cts +17 -49
- package/dist/adapters/prisma-adapter/index.d.mts +17 -49
- package/dist/adapters/prisma-adapter/index.d.ts +17 -49
- package/dist/adapters/prisma-adapter/index.mjs +131 -204
- package/dist/adapters/test.cjs +710 -377
- package/dist/adapters/test.d.cts +64 -5
- package/dist/adapters/test.d.mts +64 -5
- package/dist/adapters/test.d.ts +64 -5
- package/dist/adapters/test.mjs +712 -380
- package/dist/api/index.cjs +61 -25
- package/dist/api/index.d.cts +3 -3
- package/dist/api/index.d.mts +3 -3
- package/dist/api/index.d.ts +3 -3
- package/dist/api/index.mjs +63 -27
- package/dist/client/index.d.cts +3 -3
- package/dist/client/index.d.mts +3 -3
- package/dist/client/index.d.ts +3 -3
- package/dist/client/plugins/index.cjs +13 -15
- package/dist/client/plugins/index.d.cts +80 -19
- package/dist/client/plugins/index.d.mts +80 -19
- package/dist/client/plugins/index.d.ts +80 -19
- package/dist/client/plugins/index.mjs +13 -16
- package/dist/client/react/index.cjs +4 -4
- package/dist/client/react/index.d.cts +3 -3
- package/dist/client/react/index.d.mts +3 -3
- package/dist/client/react/index.d.ts +3 -3
- package/dist/client/solid/index.d.cts +3 -3
- package/dist/client/solid/index.d.mts +3 -3
- package/dist/client/solid/index.d.ts +3 -3
- package/dist/client/svelte/index.d.cts +3 -3
- package/dist/client/svelte/index.d.mts +3 -3
- package/dist/client/svelte/index.d.ts +3 -3
- package/dist/client/vue/index.d.cts +3 -3
- package/dist/client/vue/index.d.mts +3 -3
- package/dist/client/vue/index.d.ts +3 -3
- package/dist/cookies/index.cjs +13 -2
- package/dist/cookies/index.d.cts +3 -3
- package/dist/cookies/index.d.mts +3 -3
- package/dist/cookies/index.d.ts +3 -3
- package/dist/cookies/index.mjs +13 -2
- package/dist/db/index.cjs +6 -5
- package/dist/db/index.d.cts +4 -4
- package/dist/db/index.d.mts +4 -4
- package/dist/db/index.d.ts +4 -4
- package/dist/db/index.mjs +7 -6
- package/dist/index.cjs +11 -7
- package/dist/index.d.cts +4 -4
- package/dist/index.d.mts +4 -4
- package/dist/index.d.ts +4 -4
- package/dist/index.mjs +14 -10
- package/dist/integrations/next-js.cjs +4 -5
- package/dist/integrations/next-js.d.cts +3 -3
- package/dist/integrations/next-js.d.mts +3 -3
- package/dist/integrations/next-js.d.ts +3 -3
- package/dist/integrations/next-js.mjs +5 -6
- package/dist/integrations/node.d.cts +3 -3
- package/dist/integrations/node.d.mts +3 -3
- package/dist/integrations/node.d.ts +3 -3
- package/dist/integrations/react-start.cjs +5 -6
- package/dist/integrations/react-start.d.cts +3 -3
- package/dist/integrations/react-start.d.mts +3 -3
- package/dist/integrations/react-start.d.ts +3 -3
- package/dist/integrations/react-start.mjs +6 -7
- package/dist/integrations/svelte-kit.d.cts +3 -3
- package/dist/integrations/svelte-kit.d.mts +3 -3
- package/dist/integrations/svelte-kit.d.ts +3 -3
- package/dist/oauth2/index.d.cts +5 -5
- package/dist/oauth2/index.d.mts +5 -5
- package/dist/oauth2/index.d.ts +5 -5
- package/dist/plugins/access/index.d.cts +1 -1
- package/dist/plugins/access/index.d.mts +1 -1
- package/dist/plugins/access/index.d.ts +1 -1
- package/dist/plugins/admin/access/index.d.cts +1 -1
- package/dist/plugins/admin/access/index.d.mts +1 -1
- package/dist/plugins/admin/access/index.d.ts +1 -1
- package/dist/plugins/admin/index.cjs +4 -4
- package/dist/plugins/admin/index.d.cts +74 -14
- package/dist/plugins/admin/index.d.mts +74 -14
- package/dist/plugins/admin/index.d.ts +74 -14
- package/dist/plugins/admin/index.mjs +5 -5
- package/dist/plugins/anonymous/index.cjs +4 -5
- package/dist/plugins/anonymous/index.d.cts +3 -3
- package/dist/plugins/anonymous/index.d.mts +3 -3
- package/dist/plugins/anonymous/index.d.ts +3 -3
- package/dist/plugins/anonymous/index.mjs +5 -6
- package/dist/plugins/bearer/index.cjs +2 -2
- package/dist/plugins/bearer/index.d.cts +3 -3
- package/dist/plugins/bearer/index.d.mts +3 -3
- package/dist/plugins/bearer/index.d.ts +3 -3
- package/dist/plugins/bearer/index.mjs +3 -3
- package/dist/plugins/captcha/index.cjs +110 -45
- package/dist/plugins/captcha/index.d.cts +26 -6
- package/dist/plugins/captcha/index.d.mts +26 -6
- package/dist/plugins/captcha/index.d.ts +26 -6
- package/dist/plugins/captcha/index.mjs +110 -45
- package/dist/plugins/custom-session/index.cjs +24 -5
- package/dist/plugins/custom-session/index.d.cts +25 -6
- package/dist/plugins/custom-session/index.d.mts +25 -6
- package/dist/plugins/custom-session/index.d.ts +25 -6
- package/dist/plugins/custom-session/index.mjs +25 -6
- package/dist/plugins/email-otp/index.cjs +96 -30
- package/dist/plugins/email-otp/index.d.cts +33 -10
- package/dist/plugins/email-otp/index.d.mts +33 -10
- package/dist/plugins/email-otp/index.d.ts +33 -10
- package/dist/plugins/email-otp/index.mjs +97 -31
- package/dist/plugins/generic-oauth/index.cjs +81 -20
- package/dist/plugins/generic-oauth/index.d.cts +46 -3
- package/dist/plugins/generic-oauth/index.d.mts +46 -3
- package/dist/plugins/generic-oauth/index.d.ts +46 -3
- package/dist/plugins/generic-oauth/index.mjs +82 -21
- package/dist/plugins/haveibeenpwned/index.cjs +98 -0
- package/dist/plugins/haveibeenpwned/index.d.cts +36 -0
- package/dist/plugins/haveibeenpwned/index.d.mts +36 -0
- package/dist/plugins/haveibeenpwned/index.d.ts +36 -0
- package/dist/plugins/haveibeenpwned/index.mjs +96 -0
- package/dist/plugins/index.cjs +583 -19
- package/dist/plugins/index.d.cts +7 -5
- package/dist/plugins/index.d.mts +7 -5
- package/dist/plugins/index.d.ts +7 -5
- package/dist/plugins/index.mjs +583 -21
- package/dist/plugins/jwt/index.cjs +45 -21
- package/dist/plugins/jwt/index.d.cts +52 -6
- package/dist/plugins/jwt/index.d.mts +52 -6
- package/dist/plugins/jwt/index.d.ts +52 -6
- package/dist/plugins/jwt/index.mjs +46 -22
- package/dist/plugins/magic-link/index.cjs +3 -3
- package/dist/plugins/magic-link/index.mjs +4 -4
- package/dist/plugins/multi-session/index.cjs +3 -3
- package/dist/plugins/multi-session/index.d.cts +3 -3
- package/dist/plugins/multi-session/index.d.mts +3 -3
- package/dist/plugins/multi-session/index.d.ts +3 -3
- package/dist/plugins/multi-session/index.mjs +4 -4
- package/dist/plugins/oauth-proxy/index.cjs +4 -4
- package/dist/plugins/oauth-proxy/index.d.cts +3 -3
- package/dist/plugins/oauth-proxy/index.d.mts +3 -3
- package/dist/plugins/oauth-proxy/index.d.ts +3 -3
- package/dist/plugins/oauth-proxy/index.mjs +5 -5
- package/dist/plugins/oidc-provider/index.cjs +227 -8
- package/dist/plugins/oidc-provider/index.d.cts +215 -3
- package/dist/plugins/oidc-provider/index.d.mts +215 -3
- package/dist/plugins/oidc-provider/index.d.ts +215 -3
- package/dist/plugins/oidc-provider/index.mjs +228 -9
- package/dist/plugins/one-tap/index.cjs +5 -5
- package/dist/plugins/one-tap/index.mjs +6 -6
- package/dist/plugins/one-time-token/index.cjs +119 -0
- package/dist/plugins/one-time-token/index.d.cts +134 -0
- package/dist/plugins/one-time-token/index.d.mts +134 -0
- package/dist/plugins/one-time-token/index.d.ts +134 -0
- package/dist/plugins/one-time-token/index.mjs +117 -0
- package/dist/plugins/open-api/index.cjs +3 -3
- package/dist/plugins/open-api/index.d.cts +3 -3
- package/dist/plugins/open-api/index.d.mts +3 -3
- package/dist/plugins/open-api/index.d.ts +3 -3
- package/dist/plugins/open-api/index.mjs +4 -4
- package/dist/plugins/organization/access/index.d.cts +1 -1
- package/dist/plugins/organization/access/index.d.mts +1 -1
- package/dist/plugins/organization/access/index.d.ts +1 -1
- package/dist/plugins/organization/index.cjs +4 -4
- package/dist/plugins/organization/index.d.cts +708 -55
- package/dist/plugins/organization/index.d.mts +708 -55
- package/dist/plugins/organization/index.d.ts +708 -55
- package/dist/plugins/organization/index.mjs +5 -5
- package/dist/plugins/passkey/index.cjs +82 -8
- package/dist/plugins/passkey/index.d.cts +72 -3
- package/dist/plugins/passkey/index.d.mts +72 -3
- package/dist/plugins/passkey/index.d.ts +72 -3
- package/dist/plugins/passkey/index.mjs +83 -9
- package/dist/plugins/phone-number/index.cjs +194 -26
- package/dist/plugins/phone-number/index.d.cts +132 -8
- package/dist/plugins/phone-number/index.d.mts +132 -8
- package/dist/plugins/phone-number/index.d.ts +132 -8
- package/dist/plugins/phone-number/index.mjs +195 -27
- package/dist/plugins/sso/index.cjs +190 -7
- package/dist/plugins/sso/index.d.cts +181 -15
- package/dist/plugins/sso/index.d.mts +181 -15
- package/dist/plugins/sso/index.d.ts +181 -15
- package/dist/plugins/sso/index.mjs +191 -8
- package/dist/plugins/two-factor/index.cjs +443 -92
- package/dist/plugins/two-factor/index.d.cts +230 -396
- package/dist/plugins/two-factor/index.d.mts +230 -396
- package/dist/plugins/two-factor/index.d.ts +230 -396
- package/dist/plugins/two-factor/index.mjs +431 -80
- package/dist/plugins/username/index.cjs +34 -31
- package/dist/plugins/username/index.d.cts +15 -12
- package/dist/plugins/username/index.d.mts +15 -12
- package/dist/plugins/username/index.d.ts +15 -12
- package/dist/plugins/username/index.mjs +35 -32
- package/dist/shared/better-auth.1DR6suCQ.mjs +307 -0
- package/dist/shared/{better-auth.BSsp73pg.cjs → better-auth.B7cZ2juS.cjs} +15 -14
- package/dist/shared/{better-auth.bKwabe3I.d.mts → better-auth.B88xucNq.d.mts} +529 -39
- package/dist/shared/{better-auth.CApEjVDP.cjs → better-auth.BW8BpneG.cjs} +4 -1
- package/dist/shared/{better-auth.BiQsvaIP.d.cts → better-auth.BcU1Kjyq.d.cts} +2051 -518
- package/dist/shared/better-auth.BfG24BjZ.cjs +118 -0
- package/dist/shared/{better-auth.A3TjrU8G.mjs → better-auth.Bk5IMdhM.mjs} +32 -12
- package/dist/shared/{better-auth.D9VnBkRI.mjs → better-auth.Bm9HxIzE.mjs} +47 -24
- package/dist/shared/{better-auth.BRf6Iynu.d.ts → better-auth.Bwc-6kOr.d.ts} +1 -1
- package/dist/shared/{better-auth.D-oLmHIj.d.mts → better-auth.CA2hFK4N.d.ts} +2051 -518
- package/dist/shared/{better-auth.Dmhe30iW.d.mts → better-auth.CGukGrxT.d.cts} +1 -1
- package/dist/shared/{better-auth.CsSpq0zL.cjs → better-auth.CHUzBidy.cjs} +46 -23
- package/dist/shared/{better-auth.DWRligF8.d.cts → better-auth.CT9J6rD-.d.cts} +539 -7
- package/dist/shared/better-auth.CVCo5Z2T.cjs +310 -0
- package/dist/shared/{better-auth.D4jH-sJA.mjs → better-auth.CWwVo_61.mjs} +458 -118
- package/dist/shared/{better-auth.Bi8FQwDD.d.cts → better-auth.CYegVoq1.d.cts} +1 -1
- package/dist/shared/{better-auth.Bi8FQwDD.d.mts → better-auth.CYegVoq1.d.mts} +1 -1
- package/dist/shared/{better-auth.Bi8FQwDD.d.ts → better-auth.CYegVoq1.d.ts} +1 -1
- package/dist/shared/{better-auth.CepcSj5H.mjs → better-auth.Cc72UxUH.mjs} +1 -2
- package/dist/shared/{better-auth.BWp5dztg.d.ts → better-auth.CmN4mlPh.d.ts} +539 -7
- package/dist/shared/{better-auth.DH3YjMQH.mjs → better-auth.Cqykj82J.mjs} +1 -1
- package/dist/shared/{better-auth.wcdMj2cT.d.mts → better-auth.DIt2e3lu.d.mts} +539 -7
- package/dist/shared/{better-auth.BANAxdkL.d.ts → better-auth.DNTAFSt1.d.ts} +529 -39
- package/dist/shared/{better-auth.DU2QNVc_.d.ts → better-auth.DQ7OSJbI.d.mts} +2051 -518
- package/dist/shared/{better-auth.DLTzKoOS.cjs → better-auth.DSVbLSt7.cjs} +4 -1
- package/dist/shared/{better-auth.B2Fw1vhH.d.cts → better-auth.DTiSPWEk.d.cts} +529 -39
- package/dist/shared/better-auth.DURsStt9.mjs +116 -0
- package/dist/shared/{better-auth.BIjcZ_vt.cjs → better-auth.DYoLD99C.cjs} +31 -11
- package/dist/shared/{better-auth.CV1L7TPV.cjs → better-auth.D_ZIX1O8.cjs} +317 -47
- package/dist/shared/{better-auth.C5H9XEzZ.cjs → better-auth.DcWKCjjf.cjs} +1 -2
- package/dist/shared/{better-auth.BDYXUcLv.cjs → better-auth.Dg0siV5C.cjs} +457 -117
- package/dist/shared/better-auth.DjryM8pE.cjs +760 -0
- package/dist/shared/{better-auth.DPBQN9Fs.mjs → better-auth.Dn_Ms1Uf.mjs} +318 -48
- package/dist/shared/{better-auth.DiG4KL2x.mjs → better-auth.OuYYTHC7.mjs} +4 -1
- package/dist/shared/{better-auth.DtC8i3pf.d.cts → better-auth.S1jimRbX.d.mts} +1 -1
- package/dist/shared/better-auth.SPmq4a4z.d.mts +344 -0
- package/dist/shared/{better-auth.cOCrlspr.mjs → better-auth.bkwPl2G4.mjs} +4 -1
- package/dist/shared/better-auth.cp2rC2iM.d.ts +344 -0
- package/dist/shared/better-auth.eVy4DZvP.d.cts +344 -0
- package/dist/shared/{better-auth.BrOpzmqo.mjs → better-auth.iKoUsdFE.mjs} +15 -14
- package/dist/shared/better-auth.rSYJCd3o.mjs +758 -0
- package/dist/social-providers/index.cjs +75 -3
- package/dist/social-providers/index.d.cts +2 -2
- package/dist/social-providers/index.d.mts +2 -2
- package/dist/social-providers/index.d.ts +2 -2
- package/dist/social-providers/index.mjs +77 -6
- package/dist/types/index.d.cts +4 -4
- package/dist/types/index.d.mts +4 -4
- package/dist/types/index.d.ts +4 -4
- package/package.json +42 -5
- package/dist/chunks/server.cjs +0 -905
- package/dist/chunks/server.mjs +0 -895
- package/dist/shared/better-auth.BcoSd9tC.mjs +0 -10
- package/dist/shared/better-auth.BnRFp-t0.mjs +0 -405
- package/dist/shared/better-auth.C1-vpKly.cjs +0 -12
- package/dist/shared/better-auth.ClTSOgiD.mjs +0 -140
- package/dist/shared/better-auth.DC8JQbiE.mjs +0 -173
- package/dist/shared/better-auth.DWHWPllD.cjs +0 -175
- package/dist/shared/better-auth.DqLjzBlO.cjs +0 -408
- package/dist/shared/better-auth.m575EIBC.cjs +0 -144
package/dist/api/index.cjs
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
const betterCall = require('better-call');
|
|
4
|
-
const refreshToken = require('../shared/better-auth.
|
|
4
|
+
const refreshToken = require('../shared/better-auth.Dg0siV5C.cjs');
|
|
5
5
|
const zod = require('zod');
|
|
6
6
|
const cookies_index = require('../cookies/index.cjs');
|
|
7
|
-
const schema = require('../shared/better-auth.
|
|
7
|
+
const schema = require('../shared/better-auth.DcWKCjjf.cjs');
|
|
8
8
|
const env = require('../shared/better-auth.DiSjtgs9.cjs');
|
|
9
9
|
const logger = require('../shared/better-auth.GpOOav9x.cjs');
|
|
10
|
-
const getRequestIp = require('../shared/better-auth.
|
|
10
|
+
const getRequestIp = require('../shared/better-auth.B7cZ2juS.cjs');
|
|
11
11
|
const defu = require('defu');
|
|
12
12
|
require('../social-providers/index.cjs');
|
|
13
13
|
require('@better-fetch/fetch');
|
|
@@ -27,12 +27,12 @@ require('../shared/better-auth.CYeOI8C-.cjs');
|
|
|
27
27
|
require('@better-auth/utils/random');
|
|
28
28
|
require('../shared/better-auth.ANpbi45u.cjs');
|
|
29
29
|
require('../shared/better-auth.QbbyHMYf.cjs');
|
|
30
|
+
require('../shared/better-auth.D3mtHEZg.cjs');
|
|
30
31
|
require('../shared/better-auth.Bg6iw3ig.cjs');
|
|
31
32
|
require('@better-auth/utils/hmac');
|
|
32
33
|
require('../shared/better-auth.BMYo0QR-.cjs');
|
|
33
34
|
require('../shared/better-auth.C-R0J0n1.cjs');
|
|
34
35
|
require('jose/errors');
|
|
35
|
-
require('../shared/better-auth.D3mtHEZg.cjs');
|
|
36
36
|
require('@better-auth/utils/binary');
|
|
37
37
|
|
|
38
38
|
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e.default : e; }
|
|
@@ -80,33 +80,66 @@ const signUpEmail = () => refreshToken.createAuthEndpoint(
|
|
|
80
80
|
},
|
|
81
81
|
responses: {
|
|
82
82
|
"200": {
|
|
83
|
-
description: "
|
|
83
|
+
description: "Successfully created user",
|
|
84
84
|
content: {
|
|
85
85
|
"application/json": {
|
|
86
86
|
schema: {
|
|
87
87
|
type: "object",
|
|
88
88
|
properties: {
|
|
89
|
-
|
|
90
|
-
type: "string",
|
|
91
|
-
description: "The id of the user"
|
|
92
|
-
},
|
|
93
|
-
email: {
|
|
94
|
-
type: "string",
|
|
95
|
-
description: "The email of the user"
|
|
96
|
-
},
|
|
97
|
-
name: {
|
|
98
|
-
type: "string",
|
|
99
|
-
description: "The name of the user"
|
|
100
|
-
},
|
|
101
|
-
image: {
|
|
89
|
+
token: {
|
|
102
90
|
type: "string",
|
|
103
|
-
|
|
91
|
+
nullable: true,
|
|
92
|
+
description: "Authentication token for the session"
|
|
104
93
|
},
|
|
105
|
-
|
|
106
|
-
type: "
|
|
107
|
-
|
|
94
|
+
user: {
|
|
95
|
+
type: "object",
|
|
96
|
+
properties: {
|
|
97
|
+
id: {
|
|
98
|
+
type: "string",
|
|
99
|
+
description: "The unique identifier of the user"
|
|
100
|
+
},
|
|
101
|
+
email: {
|
|
102
|
+
type: "string",
|
|
103
|
+
format: "email",
|
|
104
|
+
description: "The email address of the user"
|
|
105
|
+
},
|
|
106
|
+
name: {
|
|
107
|
+
type: "string",
|
|
108
|
+
description: "The name of the user"
|
|
109
|
+
},
|
|
110
|
+
image: {
|
|
111
|
+
type: "string",
|
|
112
|
+
format: "uri",
|
|
113
|
+
nullable: true,
|
|
114
|
+
description: "The profile image URL of the user"
|
|
115
|
+
},
|
|
116
|
+
emailVerified: {
|
|
117
|
+
type: "boolean",
|
|
118
|
+
description: "Whether the email has been verified"
|
|
119
|
+
},
|
|
120
|
+
createdAt: {
|
|
121
|
+
type: "string",
|
|
122
|
+
format: "date-time",
|
|
123
|
+
description: "When the user was created"
|
|
124
|
+
},
|
|
125
|
+
updatedAt: {
|
|
126
|
+
type: "string",
|
|
127
|
+
format: "date-time",
|
|
128
|
+
description: "When the user was last updated"
|
|
129
|
+
}
|
|
130
|
+
},
|
|
131
|
+
required: [
|
|
132
|
+
"id",
|
|
133
|
+
"email",
|
|
134
|
+
"name",
|
|
135
|
+
"emailVerified",
|
|
136
|
+
"createdAt",
|
|
137
|
+
"updatedAt"
|
|
138
|
+
]
|
|
108
139
|
}
|
|
109
|
-
}
|
|
140
|
+
},
|
|
141
|
+
required: ["user"]
|
|
142
|
+
// token is optional
|
|
110
143
|
}
|
|
111
144
|
}
|
|
112
145
|
}
|
|
@@ -154,6 +187,7 @@ const signUpEmail = () => refreshToken.createAuthEndpoint(
|
|
|
154
187
|
ctx.context.options,
|
|
155
188
|
additionalFields
|
|
156
189
|
);
|
|
190
|
+
const hash = await ctx.context.password.hash(password);
|
|
157
191
|
let createdUser;
|
|
158
192
|
try {
|
|
159
193
|
createdUser = await ctx.context.internalAdapter.createUser(
|
|
@@ -175,6 +209,9 @@ const signUpEmail = () => refreshToken.createAuthEndpoint(
|
|
|
175
209
|
if (env.isDevelopment) {
|
|
176
210
|
ctx.context.logger.error("Failed to create user", e);
|
|
177
211
|
}
|
|
212
|
+
if (e instanceof betterCall.APIError) {
|
|
213
|
+
throw e;
|
|
214
|
+
}
|
|
178
215
|
throw new betterCall.APIError("UNPROCESSABLE_ENTITY", {
|
|
179
216
|
message: refreshToken.BASE_ERROR_CODES.FAILED_TO_CREATE_USER,
|
|
180
217
|
details: e
|
|
@@ -185,7 +222,6 @@ const signUpEmail = () => refreshToken.createAuthEndpoint(
|
|
|
185
222
|
message: refreshToken.BASE_ERROR_CODES.FAILED_TO_CREATE_USER
|
|
186
223
|
});
|
|
187
224
|
}
|
|
188
|
-
const hash = await ctx.context.password.hash(password);
|
|
189
225
|
await ctx.context.internalAdapter.linkAccount(
|
|
190
226
|
{
|
|
191
227
|
userId: createdUser.id,
|
|
@@ -228,7 +264,7 @@ const signUpEmail = () => refreshToken.createAuthEndpoint(
|
|
|
228
264
|
}
|
|
229
265
|
const session = await ctx.context.internalAdapter.createSession(
|
|
230
266
|
createdUser.id,
|
|
231
|
-
ctx.
|
|
267
|
+
ctx.headers
|
|
232
268
|
);
|
|
233
269
|
if (!session) {
|
|
234
270
|
throw new betterCall.APIError("BAD_REQUEST", {
|
package/dist/api/index.d.cts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import '../shared/better-auth.
|
|
1
|
+
import '../shared/better-auth.CYegVoq1.cjs';
|
|
2
2
|
export { APIError } from 'better-call';
|
|
3
|
-
export { d as AuthEndpoint, e as AuthMiddleware,
|
|
3
|
+
export { d as AuthEndpoint, e as AuthMiddleware, aF as callbackOAuth, b0 as changeEmail, aY as changePassword, b as createAuthEndpoint, c as createAuthMiddleware, aT as createEmailVerificationToken, a_ as deleteUser, a$ as deleteUserCallback, b1 as error, aQ as forgetPassword, aR as forgetPasswordCallback, aK as freshSessionMiddleware, aB as getEndpoints, aG as getSession, aH as getSessionFromCtx, b5 as linkSocialAccount, aL as listSessions, b4 as listUserAccounts, b2 as ok, o as optionsMiddleware, b9 as originCheck, b8 as originCheckMiddleware, b7 as refreshToken, aJ as requestOnlySessionMiddleware, aS as resetPassword, aO as revokeOtherSessions, aM as revokeSession, aN as revokeSessions, aC as router, aV as sendVerificationEmail, aU as sendVerificationEmailFn, aI as sessionMiddleware, aZ as setPassword, aE as signInEmail, aD as signInSocial, aP as signOut, b3 as signUpEmail, b6 as unlinkAccount, aX as updateUser, aW as verifyEmail } from '../shared/better-auth.BcU1Kjyq.cjs';
|
|
4
4
|
import 'zod';
|
|
5
|
-
import '../shared/better-auth.
|
|
5
|
+
import '../shared/better-auth.DTiSPWEk.cjs';
|
|
6
6
|
import 'kysely';
|
|
7
7
|
import 'better-sqlite3';
|
|
8
8
|
import 'jose';
|
package/dist/api/index.d.mts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import '../shared/better-auth.
|
|
1
|
+
import '../shared/better-auth.CYegVoq1.mjs';
|
|
2
2
|
export { APIError } from 'better-call';
|
|
3
|
-
export { d as AuthEndpoint, e as AuthMiddleware,
|
|
3
|
+
export { d as AuthEndpoint, e as AuthMiddleware, aF as callbackOAuth, b0 as changeEmail, aY as changePassword, b as createAuthEndpoint, c as createAuthMiddleware, aT as createEmailVerificationToken, a_ as deleteUser, a$ as deleteUserCallback, b1 as error, aQ as forgetPassword, aR as forgetPasswordCallback, aK as freshSessionMiddleware, aB as getEndpoints, aG as getSession, aH as getSessionFromCtx, b5 as linkSocialAccount, aL as listSessions, b4 as listUserAccounts, b2 as ok, o as optionsMiddleware, b9 as originCheck, b8 as originCheckMiddleware, b7 as refreshToken, aJ as requestOnlySessionMiddleware, aS as resetPassword, aO as revokeOtherSessions, aM as revokeSession, aN as revokeSessions, aC as router, aV as sendVerificationEmail, aU as sendVerificationEmailFn, aI as sessionMiddleware, aZ as setPassword, aE as signInEmail, aD as signInSocial, aP as signOut, b3 as signUpEmail, b6 as unlinkAccount, aX as updateUser, aW as verifyEmail } from '../shared/better-auth.DQ7OSJbI.mjs';
|
|
4
4
|
import 'zod';
|
|
5
|
-
import '../shared/better-auth.
|
|
5
|
+
import '../shared/better-auth.B88xucNq.mjs';
|
|
6
6
|
import 'kysely';
|
|
7
7
|
import 'better-sqlite3';
|
|
8
8
|
import 'jose';
|
package/dist/api/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import '../shared/better-auth.
|
|
1
|
+
import '../shared/better-auth.CYegVoq1.js';
|
|
2
2
|
export { APIError } from 'better-call';
|
|
3
|
-
export { d as AuthEndpoint, e as AuthMiddleware,
|
|
3
|
+
export { d as AuthEndpoint, e as AuthMiddleware, aF as callbackOAuth, b0 as changeEmail, aY as changePassword, b as createAuthEndpoint, c as createAuthMiddleware, aT as createEmailVerificationToken, a_ as deleteUser, a$ as deleteUserCallback, b1 as error, aQ as forgetPassword, aR as forgetPasswordCallback, aK as freshSessionMiddleware, aB as getEndpoints, aG as getSession, aH as getSessionFromCtx, b5 as linkSocialAccount, aL as listSessions, b4 as listUserAccounts, b2 as ok, o as optionsMiddleware, b9 as originCheck, b8 as originCheckMiddleware, b7 as refreshToken, aJ as requestOnlySessionMiddleware, aS as resetPassword, aO as revokeOtherSessions, aM as revokeSession, aN as revokeSessions, aC as router, aV as sendVerificationEmail, aU as sendVerificationEmailFn, aI as sessionMiddleware, aZ as setPassword, aE as signInEmail, aD as signInSocial, aP as signOut, b3 as signUpEmail, b6 as unlinkAccount, aX as updateUser, aW as verifyEmail } from '../shared/better-auth.CA2hFK4N.js';
|
|
4
4
|
import 'zod';
|
|
5
|
-
import '../shared/better-auth.
|
|
5
|
+
import '../shared/better-auth.DNTAFSt1.js';
|
|
6
6
|
import 'kysely';
|
|
7
7
|
import 'better-sqlite3';
|
|
8
8
|
import 'jose';
|
package/dist/api/index.mjs
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { APIError, toResponse, createRouter } from 'better-call';
|
|
2
2
|
export { APIError } from 'better-call';
|
|
3
|
-
import { a as createAuthEndpoint, B as BASE_ERROR_CODES, e as createEmailVerificationToken, w as wildcardMatch, l as listSessions, u as updateUser, b as getSession, i as originCheckMiddleware, j as error, k as ok, r as refreshToken, m as unlinkAccount, n as deleteUserCallback, p as listUserAccounts, q as linkSocialAccount, t as revokeOtherSessions, v as revokeSessions, x as revokeSession, y as forgetPasswordCallback, z as deleteUser, A as setPassword, C as changePassword, D as changeEmail, E as sendVerificationEmail, F as verifyEmail, G as resetPassword, I as forgetPassword, J as signInEmail, K as signOut, L as callbackOAuth, M as signInSocial } from '../shared/better-auth.
|
|
4
|
-
export { c as createAuthMiddleware, f as freshSessionMiddleware, g as getSessionFromCtx, O as optionsMiddleware, o as originCheck, N as requestOnlySessionMiddleware, d as sendVerificationEmailFn, s as sessionMiddleware } from '../shared/better-auth.
|
|
3
|
+
import { a as createAuthEndpoint, B as BASE_ERROR_CODES, e as createEmailVerificationToken, w as wildcardMatch, l as listSessions, u as updateUser, b as getSession, i as originCheckMiddleware, j as error, k as ok, r as refreshToken, m as unlinkAccount, n as deleteUserCallback, p as listUserAccounts, q as linkSocialAccount, t as revokeOtherSessions, v as revokeSessions, x as revokeSession, y as forgetPasswordCallback, z as deleteUser, A as setPassword, C as changePassword, D as changeEmail, E as sendVerificationEmail, F as verifyEmail, G as resetPassword, I as forgetPassword, J as signInEmail, K as signOut, L as callbackOAuth, M as signInSocial } from '../shared/better-auth.CWwVo_61.mjs';
|
|
4
|
+
export { c as createAuthMiddleware, f as freshSessionMiddleware, g as getSessionFromCtx, O as optionsMiddleware, o as originCheck, N as requestOnlySessionMiddleware, d as sendVerificationEmailFn, s as sessionMiddleware } from '../shared/better-auth.CWwVo_61.mjs';
|
|
5
5
|
import { z } from 'zod';
|
|
6
6
|
import { setSessionCookie } from '../cookies/index.mjs';
|
|
7
|
-
import { f as parseUserInput } from '../shared/better-auth.
|
|
7
|
+
import { f as parseUserInput } from '../shared/better-auth.Cc72UxUH.mjs';
|
|
8
8
|
import { b as isDevelopment } from '../shared/better-auth.8zoxzg-F.mjs';
|
|
9
|
-
import {
|
|
10
|
-
import { g as getIp } from '../shared/better-auth.
|
|
9
|
+
import { l as logger } from '../shared/better-auth.Cqykj82J.mjs';
|
|
10
|
+
import { g as getIp } from '../shared/better-auth.iKoUsdFE.mjs';
|
|
11
11
|
import defu from 'defu';
|
|
12
12
|
import '../social-providers/index.mjs';
|
|
13
13
|
import '@better-fetch/fetch';
|
|
@@ -27,12 +27,12 @@ import '../shared/better-auth.B4Qoxdgc.mjs';
|
|
|
27
27
|
import '@better-auth/utils/random';
|
|
28
28
|
import '../shared/better-auth.DdzSJf-n.mjs';
|
|
29
29
|
import '../shared/better-auth.BdyOG_p4.mjs';
|
|
30
|
+
import '../shared/better-auth.tB5eU6EY.mjs';
|
|
30
31
|
import '../shared/better-auth.BUPPRXfK.mjs';
|
|
31
32
|
import '@better-auth/utils/hmac';
|
|
32
33
|
import '../shared/better-auth.DDEbWX-S.mjs';
|
|
33
34
|
import '../shared/better-auth.VTXNLFMT.mjs';
|
|
34
35
|
import 'jose/errors';
|
|
35
|
-
import '../shared/better-auth.tB5eU6EY.mjs';
|
|
36
36
|
import '@better-auth/utils/binary';
|
|
37
37
|
|
|
38
38
|
const signUpEmail = () => createAuthEndpoint(
|
|
@@ -76,33 +76,66 @@ const signUpEmail = () => createAuthEndpoint(
|
|
|
76
76
|
},
|
|
77
77
|
responses: {
|
|
78
78
|
"200": {
|
|
79
|
-
description: "
|
|
79
|
+
description: "Successfully created user",
|
|
80
80
|
content: {
|
|
81
81
|
"application/json": {
|
|
82
82
|
schema: {
|
|
83
83
|
type: "object",
|
|
84
84
|
properties: {
|
|
85
|
-
|
|
86
|
-
type: "string",
|
|
87
|
-
description: "The id of the user"
|
|
88
|
-
},
|
|
89
|
-
email: {
|
|
90
|
-
type: "string",
|
|
91
|
-
description: "The email of the user"
|
|
92
|
-
},
|
|
93
|
-
name: {
|
|
94
|
-
type: "string",
|
|
95
|
-
description: "The name of the user"
|
|
96
|
-
},
|
|
97
|
-
image: {
|
|
85
|
+
token: {
|
|
98
86
|
type: "string",
|
|
99
|
-
|
|
87
|
+
nullable: true,
|
|
88
|
+
description: "Authentication token for the session"
|
|
100
89
|
},
|
|
101
|
-
|
|
102
|
-
type: "
|
|
103
|
-
|
|
90
|
+
user: {
|
|
91
|
+
type: "object",
|
|
92
|
+
properties: {
|
|
93
|
+
id: {
|
|
94
|
+
type: "string",
|
|
95
|
+
description: "The unique identifier of the user"
|
|
96
|
+
},
|
|
97
|
+
email: {
|
|
98
|
+
type: "string",
|
|
99
|
+
format: "email",
|
|
100
|
+
description: "The email address of the user"
|
|
101
|
+
},
|
|
102
|
+
name: {
|
|
103
|
+
type: "string",
|
|
104
|
+
description: "The name of the user"
|
|
105
|
+
},
|
|
106
|
+
image: {
|
|
107
|
+
type: "string",
|
|
108
|
+
format: "uri",
|
|
109
|
+
nullable: true,
|
|
110
|
+
description: "The profile image URL of the user"
|
|
111
|
+
},
|
|
112
|
+
emailVerified: {
|
|
113
|
+
type: "boolean",
|
|
114
|
+
description: "Whether the email has been verified"
|
|
115
|
+
},
|
|
116
|
+
createdAt: {
|
|
117
|
+
type: "string",
|
|
118
|
+
format: "date-time",
|
|
119
|
+
description: "When the user was created"
|
|
120
|
+
},
|
|
121
|
+
updatedAt: {
|
|
122
|
+
type: "string",
|
|
123
|
+
format: "date-time",
|
|
124
|
+
description: "When the user was last updated"
|
|
125
|
+
}
|
|
126
|
+
},
|
|
127
|
+
required: [
|
|
128
|
+
"id",
|
|
129
|
+
"email",
|
|
130
|
+
"name",
|
|
131
|
+
"emailVerified",
|
|
132
|
+
"createdAt",
|
|
133
|
+
"updatedAt"
|
|
134
|
+
]
|
|
104
135
|
}
|
|
105
|
-
}
|
|
136
|
+
},
|
|
137
|
+
required: ["user"]
|
|
138
|
+
// token is optional
|
|
106
139
|
}
|
|
107
140
|
}
|
|
108
141
|
}
|
|
@@ -150,6 +183,7 @@ const signUpEmail = () => createAuthEndpoint(
|
|
|
150
183
|
ctx.context.options,
|
|
151
184
|
additionalFields
|
|
152
185
|
);
|
|
186
|
+
const hash = await ctx.context.password.hash(password);
|
|
153
187
|
let createdUser;
|
|
154
188
|
try {
|
|
155
189
|
createdUser = await ctx.context.internalAdapter.createUser(
|
|
@@ -171,6 +205,9 @@ const signUpEmail = () => createAuthEndpoint(
|
|
|
171
205
|
if (isDevelopment) {
|
|
172
206
|
ctx.context.logger.error("Failed to create user", e);
|
|
173
207
|
}
|
|
208
|
+
if (e instanceof APIError) {
|
|
209
|
+
throw e;
|
|
210
|
+
}
|
|
174
211
|
throw new APIError("UNPROCESSABLE_ENTITY", {
|
|
175
212
|
message: BASE_ERROR_CODES.FAILED_TO_CREATE_USER,
|
|
176
213
|
details: e
|
|
@@ -181,7 +218,6 @@ const signUpEmail = () => createAuthEndpoint(
|
|
|
181
218
|
message: BASE_ERROR_CODES.FAILED_TO_CREATE_USER
|
|
182
219
|
});
|
|
183
220
|
}
|
|
184
|
-
const hash = await ctx.context.password.hash(password);
|
|
185
221
|
await ctx.context.internalAdapter.linkAccount(
|
|
186
222
|
{
|
|
187
223
|
userId: createdUser.id,
|
|
@@ -224,7 +260,7 @@ const signUpEmail = () => createAuthEndpoint(
|
|
|
224
260
|
}
|
|
225
261
|
const session = await ctx.context.internalAdapter.createSession(
|
|
226
262
|
createdUser.id,
|
|
227
|
-
ctx.
|
|
263
|
+
ctx.headers
|
|
228
264
|
);
|
|
229
265
|
if (!session) {
|
|
230
266
|
throw new APIError("BAD_REQUEST", {
|
package/dist/client/index.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { j as BASE_ERROR_CODES, B as BetterAuthPlugin } from '../shared/better-auth.BcU1Kjyq.cjs';
|
|
2
2
|
import * as _better_fetch_fetch from '@better-fetch/fetch';
|
|
3
3
|
import { BetterFetchError, BetterFetch, BetterFetchOption } from '@better-fetch/fetch';
|
|
4
4
|
export * from '@better-fetch/fetch';
|
|
@@ -7,9 +7,9 @@ export { AtomListener, InferAdditionalFromClient, InferPluginsFromClient, InferS
|
|
|
7
7
|
import * as nanostores from 'nanostores';
|
|
8
8
|
import { Atom, PreinitializedWritableAtom } from 'nanostores';
|
|
9
9
|
export * from 'nanostores';
|
|
10
|
-
import { U as UnionToIntersection,
|
|
10
|
+
import { U as UnionToIntersection, a as PrettifyDeep } from '../shared/better-auth.CYegVoq1.cjs';
|
|
11
11
|
import 'zod';
|
|
12
|
-
import '../shared/better-auth.
|
|
12
|
+
import '../shared/better-auth.DTiSPWEk.cjs';
|
|
13
13
|
import 'jose';
|
|
14
14
|
import 'kysely';
|
|
15
15
|
import 'better-call';
|
package/dist/client/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { j as BASE_ERROR_CODES, B as BetterAuthPlugin } from '../shared/better-auth.DQ7OSJbI.mjs';
|
|
2
2
|
import * as _better_fetch_fetch from '@better-fetch/fetch';
|
|
3
3
|
import { BetterFetchError, BetterFetch, BetterFetchOption } from '@better-fetch/fetch';
|
|
4
4
|
export * from '@better-fetch/fetch';
|
|
@@ -7,9 +7,9 @@ export { AtomListener, InferAdditionalFromClient, InferPluginsFromClient, InferS
|
|
|
7
7
|
import * as nanostores from 'nanostores';
|
|
8
8
|
import { Atom, PreinitializedWritableAtom } from 'nanostores';
|
|
9
9
|
export * from 'nanostores';
|
|
10
|
-
import { U as UnionToIntersection,
|
|
10
|
+
import { U as UnionToIntersection, a as PrettifyDeep } from '../shared/better-auth.CYegVoq1.mjs';
|
|
11
11
|
import 'zod';
|
|
12
|
-
import '../shared/better-auth.
|
|
12
|
+
import '../shared/better-auth.B88xucNq.mjs';
|
|
13
13
|
import 'jose';
|
|
14
14
|
import 'kysely';
|
|
15
15
|
import 'better-call';
|
package/dist/client/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { j as BASE_ERROR_CODES, B as BetterAuthPlugin } from '../shared/better-auth.CA2hFK4N.js';
|
|
2
2
|
import * as _better_fetch_fetch from '@better-fetch/fetch';
|
|
3
3
|
import { BetterFetchError, BetterFetch, BetterFetchOption } from '@better-fetch/fetch';
|
|
4
4
|
export * from '@better-fetch/fetch';
|
|
@@ -7,9 +7,9 @@ export { AtomListener, InferAdditionalFromClient, InferPluginsFromClient, InferS
|
|
|
7
7
|
import * as nanostores from 'nanostores';
|
|
8
8
|
import { Atom, PreinitializedWritableAtom } from 'nanostores';
|
|
9
9
|
export * from 'nanostores';
|
|
10
|
-
import { U as UnionToIntersection,
|
|
10
|
+
import { U as UnionToIntersection, a as PrettifyDeep } from '../shared/better-auth.CYegVoq1.js';
|
|
11
11
|
import 'zod';
|
|
12
|
-
import '../shared/better-auth.
|
|
12
|
+
import '../shared/better-auth.DNTAFSt1.js';
|
|
13
13
|
import 'jose';
|
|
14
14
|
import 'kysely';
|
|
15
15
|
import 'better-call';
|
|
@@ -3,15 +3,15 @@
|
|
|
3
3
|
const nanostores = require('nanostores');
|
|
4
4
|
require('@better-fetch/fetch');
|
|
5
5
|
require('../../shared/better-auth.DiSjtgs9.cjs');
|
|
6
|
-
const index = require('../../shared/better-auth.ANpbi45u.cjs');
|
|
7
6
|
const query = require('../../shared/better-auth.C_Zl7Etp.cjs');
|
|
8
7
|
const plugins_organization_access_index = require('../../plugins/organization/access/index.cjs');
|
|
9
|
-
const hasPermission = require('../../shared/better-auth.
|
|
8
|
+
const hasPermission = require('../../shared/better-auth.DSVbLSt7.cjs');
|
|
10
9
|
const browser = require('@simplewebauthn/browser');
|
|
11
10
|
const client = require('../../shared/better-auth.DnER2-iT.cjs');
|
|
12
11
|
const plugins_admin_access_index = require('../../plugins/admin/access/index.cjs');
|
|
13
|
-
const hasPermission$1 = require('../../shared/better-auth.
|
|
12
|
+
const hasPermission$1 = require('../../shared/better-auth.BW8BpneG.cjs');
|
|
14
13
|
require('../../plugins/access/index.cjs');
|
|
14
|
+
require('../../shared/better-auth.ANpbi45u.cjs');
|
|
15
15
|
|
|
16
16
|
const organizationClient = (options) => {
|
|
17
17
|
const $listOrg = nanostores.atom(false);
|
|
@@ -36,18 +36,13 @@ const organizationClient = (options) => {
|
|
|
36
36
|
},
|
|
37
37
|
organization: {
|
|
38
38
|
checkRolePermission: (data) => {
|
|
39
|
-
if (Object.keys(data.permission).length > 1) {
|
|
40
|
-
throw new index.BetterAuthError(
|
|
41
|
-
"you can only check one resource permission at a time."
|
|
42
|
-
);
|
|
43
|
-
}
|
|
44
39
|
const isAuthorized = hasPermission.hasPermission({
|
|
45
40
|
role: data.role,
|
|
46
41
|
options: {
|
|
47
42
|
ac: options?.ac,
|
|
48
43
|
roles
|
|
49
44
|
},
|
|
50
|
-
|
|
45
|
+
permissions: data.permissions ?? data.permission
|
|
51
46
|
});
|
|
52
47
|
return isAuthorized;
|
|
53
48
|
}
|
|
@@ -350,18 +345,13 @@ const adminClient = (options) => {
|
|
|
350
345
|
getActions: ($fetch) => ({
|
|
351
346
|
admin: {
|
|
352
347
|
checkRolePermission: (data) => {
|
|
353
|
-
if (Object.keys(data.permission).length > 1) {
|
|
354
|
-
throw new index.BetterAuthError(
|
|
355
|
-
"you can only check one resource permission at a time."
|
|
356
|
-
);
|
|
357
|
-
}
|
|
358
348
|
const isAuthorized = hasPermission$1.hasPermission({
|
|
359
349
|
role: data.role,
|
|
360
350
|
options: {
|
|
361
351
|
ac: options?.ac,
|
|
362
352
|
roles
|
|
363
353
|
},
|
|
364
|
-
|
|
354
|
+
permissions: data.permissions ?? data.permission
|
|
365
355
|
});
|
|
366
356
|
return isAuthorized;
|
|
367
357
|
}
|
|
@@ -553,6 +543,13 @@ const apiKeyClient = () => {
|
|
|
553
543
|
};
|
|
554
544
|
};
|
|
555
545
|
|
|
546
|
+
const oneTimeTokenClient = () => {
|
|
547
|
+
return {
|
|
548
|
+
id: "one-time-token",
|
|
549
|
+
$InferServerPlugin: {}
|
|
550
|
+
};
|
|
551
|
+
};
|
|
552
|
+
|
|
556
553
|
exports.twoFactorClient = client.twoFactorClient;
|
|
557
554
|
exports.InferServerPlugin = InferServerPlugin;
|
|
558
555
|
exports.adminClient = adminClient;
|
|
@@ -568,6 +565,7 @@ exports.magicLinkClient = magicLinkClient;
|
|
|
568
565
|
exports.multiSessionClient = multiSessionClient;
|
|
569
566
|
exports.oidcClient = oidcClient;
|
|
570
567
|
exports.oneTapClient = oneTapClient;
|
|
568
|
+
exports.oneTimeTokenClient = oneTimeTokenClient;
|
|
571
569
|
exports.organizationClient = organizationClient;
|
|
572
570
|
exports.passkeyClient = passkeyClient;
|
|
573
571
|
exports.phoneNumberClient = phoneNumberClient;
|