better-auth 1.1.17 → 1.1.18-beta.2
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.cjs +3 -3
- package/dist/adapters/drizzle.d.cts +1 -1
- package/dist/adapters/drizzle.d.ts +1 -1
- package/dist/adapters/drizzle.js +1 -1
- package/dist/adapters/kysely.cjs +3 -3
- package/dist/adapters/kysely.d.cts +1 -1
- package/dist/adapters/kysely.d.ts +1 -1
- package/dist/adapters/kysely.js +1 -1
- package/dist/adapters/memory.cjs +2 -2
- package/dist/adapters/memory.d.cts +1 -1
- package/dist/adapters/memory.d.ts +1 -1
- package/dist/adapters/memory.js +1 -1
- package/dist/adapters/mongodb.cjs +3 -3
- package/dist/adapters/mongodb.d.cts +1 -1
- package/dist/adapters/mongodb.d.ts +1 -1
- package/dist/adapters/mongodb.js +1 -1
- package/dist/adapters/prisma.cjs +3 -3
- package/dist/adapters/prisma.d.cts +1 -1
- package/dist/adapters/prisma.d.ts +1 -1
- package/dist/adapters/prisma.js +1 -1
- package/dist/adapters/test.d.cts +1 -1
- package/dist/adapters/test.d.ts +1 -1
- package/dist/api.cjs +40 -40
- package/dist/api.d.cts +1 -1
- package/dist/api.d.ts +1 -1
- package/dist/api.js +1 -1
- package/dist/{auth-DrEvljYN.d.ts → auth-BBnJHOLM.d.ts} +5 -5
- package/dist/{auth-C3Uiszaq.d.cts → auth-CGJnuSyG.d.cts} +5 -5
- package/dist/{chunk-G74GLTMW.cjs → chunk-2VHVLRC7.cjs} +25 -25
- package/dist/{chunk-UZWFAZYU.js → chunk-5D5P7O3K.js} +1 -1
- package/dist/{chunk-7IA7BH7Q.cjs → chunk-5EQLGNUW.cjs} +3 -3
- package/dist/{chunk-LT5FO4OI.cjs → chunk-5N4RX2ID.cjs} +8 -8
- package/dist/{chunk-N3IE64MY.js → chunk-7H62SU6D.js} +1 -1
- package/dist/{chunk-SLX36R7E.js → chunk-7TKSNJYH.js} +2 -3
- package/dist/{chunk-SIS5XAVL.js → chunk-CFERT2JN.js} +1 -1
- package/dist/{chunk-FNHVCAT7.cjs → chunk-CKZO2C7X.cjs} +25 -25
- package/dist/{chunk-GO3TFFMC.cjs → chunk-CQNPMJJ3.cjs} +16 -4
- package/dist/{chunk-FSGF4VUN.js → chunk-DOEW523N.js} +1 -1
- package/dist/{chunk-WDOY7YUW.cjs → chunk-DVHD6IW3.cjs} +5 -2
- package/dist/{chunk-3Y65Q2KB.cjs → chunk-EIDQBPY6.cjs} +2 -2
- package/dist/{chunk-VH5R7JVE.cjs → chunk-ENJRVUKL.cjs} +20 -19
- package/dist/{chunk-ENJOHZ5X.js → chunk-FS4Q5N2E.js} +1 -1
- package/dist/{chunk-464Z3TWD.cjs → chunk-G4LNWL5L.cjs} +4 -4
- package/dist/{chunk-U5A5K7LE.js → chunk-G5PHMKSZ.js} +1 -1
- package/dist/{chunk-D5P2JZQQ.cjs → chunk-HVYF3QT2.cjs} +4 -4
- package/dist/{chunk-CQZZYR2I.js → chunk-IWKRGAYE.js} +1 -1
- package/dist/{chunk-VCYIRPF3.js → chunk-JBACJNYI.js} +1 -1
- package/dist/{chunk-SIG5MVNB.js → chunk-K7BZ36L5.js} +2 -2
- package/dist/{chunk-Y4MIQB37.js → chunk-KALC2G3Y.js} +16 -4
- package/dist/{chunk-HMBRAM6U.cjs → chunk-KM2MFBY2.cjs} +4 -4
- package/dist/{chunk-RILLOW2V.js → chunk-OEZ6U6NM.js} +1 -1
- package/dist/{chunk-47KTHSK3.cjs → chunk-OLYRJHRO.cjs} +29 -30
- package/dist/{chunk-4HPDP6NW.js → chunk-PIHH5KXV.js} +1 -1
- package/dist/{chunk-WRQHCRKT.js → chunk-QG36GJF4.js} +2 -2
- package/dist/{chunk-TEQYQH6D.js → chunk-S7V7XM55.js} +1 -1
- package/dist/{chunk-7YYBGQKE.cjs → chunk-SDEOOYUI.cjs} +4 -4
- package/dist/{chunk-QKNIC6OJ.js → chunk-T5QCBET4.js} +11 -10
- package/dist/{chunk-MGJLVQOV.js → chunk-TQGQUCBW.js} +5 -2
- package/dist/{chunk-SH7NC6F2.cjs → chunk-UWA64YHN.cjs} +6 -6
- package/dist/{chunk-2DZNKSM5.cjs → chunk-VR4QGIHG.cjs} +6 -6
- package/dist/{chunk-VBMJPUII.cjs → chunk-WVSCDHH5.cjs} +45 -45
- package/dist/{chunk-QXDVURTN.cjs → chunk-XAF4TPVN.cjs} +12 -12
- package/dist/{chunk-BXQZH5TY.cjs → chunk-XRNGFRNU.cjs} +20 -20
- package/dist/{chunk-IMJM5H25.js → chunk-ZQFLCL7G.js} +1 -1
- package/dist/client/plugins.d.cts +2 -2
- package/dist/client/plugins.d.ts +2 -2
- package/dist/client.d.cts +1 -1
- package/dist/client.d.ts +1 -1
- package/dist/cookies.d.cts +1 -1
- package/dist/cookies.d.ts +1 -1
- package/dist/db.cjs +12 -12
- package/dist/db.d.cts +2 -2
- package/dist/db.d.ts +2 -2
- package/dist/db.js +1 -1
- package/dist/{index-CpGy_H2r.d.ts → index-BAdTrrkO.d.ts} +1 -1
- package/dist/{index-5TlXv7IL.d.cts → index-CvVfvvKF.d.cts} +1 -1
- package/dist/index.cjs +11 -11
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +4 -4
- package/dist/next-js.d.cts +1 -1
- package/dist/next-js.d.ts +1 -1
- package/dist/node.d.cts +1 -1
- package/dist/node.d.ts +1 -1
- package/dist/oauth2.d.cts +2 -2
- package/dist/oauth2.d.ts +2 -2
- package/dist/plugin/custom-session.cjs +3 -3
- package/dist/plugin/custom-session.d.cts +1 -1
- package/dist/plugin/custom-session.d.ts +1 -1
- package/dist/plugin/custom-session.js +2 -2
- package/dist/plugins/admin.cjs +3 -3
- package/dist/plugins/admin.d.cts +1 -8
- package/dist/plugins/admin.d.ts +1 -8
- package/dist/plugins/admin.js +2 -2
- package/dist/plugins/anonymous.cjs +3 -3
- package/dist/plugins/anonymous.d.cts +1 -1
- package/dist/plugins/anonymous.d.ts +1 -1
- package/dist/plugins/anonymous.js +2 -2
- package/dist/plugins/bearer.cjs +3 -3
- package/dist/plugins/bearer.d.cts +1 -1
- package/dist/plugins/bearer.d.ts +1 -1
- package/dist/plugins/bearer.js +2 -2
- package/dist/plugins/email-otp.cjs +3 -3
- package/dist/plugins/email-otp.d.cts +1 -1
- package/dist/plugins/email-otp.d.ts +1 -1
- package/dist/plugins/email-otp.js +2 -2
- package/dist/plugins/generic-oauth.cjs +3 -3
- package/dist/plugins/generic-oauth.d.cts +1 -1
- package/dist/plugins/generic-oauth.d.ts +1 -1
- package/dist/plugins/generic-oauth.js +2 -2
- package/dist/plugins/jwt.cjs +3 -3
- package/dist/plugins/jwt.d.cts +1 -1
- package/dist/plugins/jwt.d.ts +1 -1
- package/dist/plugins/jwt.js +2 -2
- package/dist/plugins/magic-link.cjs +3 -3
- package/dist/plugins/magic-link.d.cts +4 -0
- package/dist/plugins/magic-link.d.ts +4 -0
- package/dist/plugins/magic-link.js +2 -2
- package/dist/plugins/multi-session.cjs +3 -3
- package/dist/plugins/multi-session.d.cts +1 -1
- package/dist/plugins/multi-session.d.ts +1 -1
- package/dist/plugins/multi-session.js +2 -2
- package/dist/plugins/oidc-provider.cjs +3 -3
- package/dist/plugins/oidc-provider.d.cts +1 -1
- package/dist/plugins/oidc-provider.d.ts +1 -1
- package/dist/plugins/oidc-provider.js +2 -2
- package/dist/plugins/one-tap.cjs +3 -3
- package/dist/plugins/one-tap.js +2 -2
- package/dist/plugins/open-api.cjs +4 -4
- package/dist/plugins/open-api.d.cts +1 -1
- package/dist/plugins/open-api.d.ts +1 -1
- package/dist/plugins/open-api.js +3 -3
- package/dist/plugins/organization.cjs +3 -3
- package/dist/plugins/organization.d.cts +2 -2
- package/dist/plugins/organization.d.ts +2 -2
- package/dist/plugins/organization.js +2 -2
- package/dist/plugins/passkey.cjs +14 -14
- package/dist/plugins/passkey.d.cts +1 -1
- package/dist/plugins/passkey.d.ts +1 -1
- package/dist/plugins/passkey.js +1 -1
- package/dist/plugins/phone-number.cjs +3 -3
- package/dist/plugins/phone-number.d.cts +2 -2
- package/dist/plugins/phone-number.d.ts +2 -2
- package/dist/plugins/phone-number.js +2 -2
- package/dist/plugins/sso.cjs +9 -9
- package/dist/plugins/sso.d.cts +1 -1
- package/dist/plugins/sso.d.ts +1 -1
- package/dist/plugins/sso.js +1 -1
- package/dist/plugins/two-factor.cjs +3 -3
- package/dist/plugins/two-factor.d.cts +1 -1
- package/dist/plugins/two-factor.d.ts +1 -1
- package/dist/plugins/two-factor.js +2 -2
- package/dist/plugins/username.cjs +3 -3
- package/dist/plugins/username.d.cts +1 -1
- package/dist/plugins/username.d.ts +1 -1
- package/dist/plugins/username.js +2 -2
- package/dist/plugins.cjs +41 -41
- package/dist/plugins.d.cts +3 -3
- package/dist/plugins.d.ts +3 -3
- package/dist/plugins.js +19 -19
- package/dist/react.d.cts +1 -3
- package/dist/react.d.ts +1 -3
- package/dist/solid.d.cts +1 -1
- package/dist/solid.d.ts +1 -1
- package/dist/{state-CYB_w2ZU.d.cts → state-CYiTXvSS.d.cts} +1 -1
- package/dist/{state-MC1I_zfN.d.ts → state-KVoX32mg.d.ts} +1 -1
- package/dist/svelte-kit.d.cts +1 -1
- package/dist/svelte-kit.d.ts +1 -1
- package/dist/svelte.d.cts +1 -1
- package/dist/svelte.d.ts +1 -1
- package/dist/types.d.cts +3 -3
- package/dist/types.d.ts +3 -3
- package/dist/vue.d.cts +1 -1
- package/dist/vue.d.ts +1 -1
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkDVHD6IW3_cjs = require('../chunk-DVHD6IW3.cjs');
|
|
4
4
|
require('../chunk-B5UCLTPZ.cjs');
|
|
5
5
|
var chunkH74YRRNV_cjs = require('../chunk-H74YRRNV.cjs');
|
|
6
6
|
require('../chunk-5E75URIA.cjs');
|
|
@@ -14,7 +14,7 @@ var chunkPEZRSDZS_cjs = require('../chunk-PEZRSDZS.cjs');
|
|
|
14
14
|
var drizzleOrm = require('drizzle-orm');
|
|
15
15
|
|
|
16
16
|
var createTransform = (db, config, options) => {
|
|
17
|
-
const schema =
|
|
17
|
+
const schema = chunkDVHD6IW3_cjs.getAuthTables(options);
|
|
18
18
|
function getField(model, field) {
|
|
19
19
|
if (field === "id") {
|
|
20
20
|
return field;
|
|
@@ -116,7 +116,7 @@ var createTransform = (db, config, options) => {
|
|
|
116
116
|
if (value === void 0 && !fields[field].defaultValue) {
|
|
117
117
|
continue;
|
|
118
118
|
}
|
|
119
|
-
transformedData[fields[field].fieldName || field] =
|
|
119
|
+
transformedData[fields[field].fieldName || field] = chunkDVHD6IW3_cjs.withApplyDefault(
|
|
120
120
|
value,
|
|
121
121
|
fields[field],
|
|
122
122
|
action
|
package/dist/adapters/drizzle.js
CHANGED
package/dist/adapters/kysely.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkDVHD6IW3_cjs = require('../chunk-DVHD6IW3.cjs');
|
|
4
4
|
require('../chunk-B5UCLTPZ.cjs');
|
|
5
5
|
require('../chunk-H74YRRNV.cjs');
|
|
6
6
|
require('../chunk-5E75URIA.cjs');
|
|
@@ -16,9 +16,9 @@ require('../chunk-PEZRSDZS.cjs');
|
|
|
16
16
|
|
|
17
17
|
Object.defineProperty(exports, "createKyselyAdapter", {
|
|
18
18
|
enumerable: true,
|
|
19
|
-
get: function () { return
|
|
19
|
+
get: function () { return chunkDVHD6IW3_cjs.createKyselyAdapter; }
|
|
20
20
|
});
|
|
21
21
|
Object.defineProperty(exports, "kyselyAdapter", {
|
|
22
22
|
enumerable: true,
|
|
23
|
-
get: function () { return
|
|
23
|
+
get: function () { return chunkDVHD6IW3_cjs.kyselyAdapter; }
|
|
24
24
|
});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Kysely } from 'kysely';
|
|
2
|
-
import { B as BetterAuthOptions, K as KyselyDatabaseType, W as Where } from '../auth-
|
|
2
|
+
import { B as BetterAuthOptions, K as KyselyDatabaseType, W as Where } from '../auth-CGJnuSyG.cjs';
|
|
3
3
|
import 'better-call';
|
|
4
4
|
import 'zod';
|
|
5
5
|
import '../helper-Bi8FQwDD.cjs';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Kysely } from 'kysely';
|
|
2
|
-
import { B as BetterAuthOptions, K as KyselyDatabaseType, W as Where } from '../auth-
|
|
2
|
+
import { B as BetterAuthOptions, K as KyselyDatabaseType, W as Where } from '../auth-BBnJHOLM.js';
|
|
3
3
|
import 'better-call';
|
|
4
4
|
import 'zod';
|
|
5
5
|
import '../helper-Bi8FQwDD.js';
|
package/dist/adapters/kysely.js
CHANGED
package/dist/adapters/memory.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkDVHD6IW3_cjs = require('../chunk-DVHD6IW3.cjs');
|
|
4
4
|
require('../chunk-B5UCLTPZ.cjs');
|
|
5
5
|
require('../chunk-H74YRRNV.cjs');
|
|
6
6
|
require('../chunk-5E75URIA.cjs');
|
|
@@ -16,5 +16,5 @@ require('../chunk-PEZRSDZS.cjs');
|
|
|
16
16
|
|
|
17
17
|
Object.defineProperty(exports, "memoryAdapter", {
|
|
18
18
|
enumerable: true,
|
|
19
|
-
get: function () { return
|
|
19
|
+
get: function () { return chunkDVHD6IW3_cjs.memoryAdapter; }
|
|
20
20
|
});
|
package/dist/adapters/memory.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkDVHD6IW3_cjs = require('../chunk-DVHD6IW3.cjs');
|
|
4
4
|
require('../chunk-B5UCLTPZ.cjs');
|
|
5
5
|
require('../chunk-H74YRRNV.cjs');
|
|
6
6
|
require('../chunk-5E75URIA.cjs');
|
|
@@ -14,7 +14,7 @@ require('../chunk-PEZRSDZS.cjs');
|
|
|
14
14
|
var mongodb = require('mongodb');
|
|
15
15
|
|
|
16
16
|
var createTransform = (options) => {
|
|
17
|
-
const schema =
|
|
17
|
+
const schema = chunkDVHD6IW3_cjs.getAuthTables(options);
|
|
18
18
|
function serializeID(field, value, model) {
|
|
19
19
|
if (field === "id" || field === "_id" || schema[model].fields[field].references?.field === "id") {
|
|
20
20
|
if (typeof value !== "string") {
|
|
@@ -81,7 +81,7 @@ var createTransform = (options) => {
|
|
|
81
81
|
if (value === void 0 && (!fields[field].defaultValue || action === "update")) {
|
|
82
82
|
continue;
|
|
83
83
|
}
|
|
84
|
-
transformedData[fields[field].fieldName || field] =
|
|
84
|
+
transformedData[fields[field].fieldName || field] = chunkDVHD6IW3_cjs.withApplyDefault(
|
|
85
85
|
serializeID(field, value, model),
|
|
86
86
|
fields[field],
|
|
87
87
|
action
|
package/dist/adapters/mongodb.js
CHANGED
package/dist/adapters/prisma.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkDVHD6IW3_cjs = require('../chunk-DVHD6IW3.cjs');
|
|
4
4
|
require('../chunk-B5UCLTPZ.cjs');
|
|
5
5
|
var chunkH74YRRNV_cjs = require('../chunk-H74YRRNV.cjs');
|
|
6
6
|
require('../chunk-5E75URIA.cjs');
|
|
@@ -14,7 +14,7 @@ var chunkPEZRSDZS_cjs = require('../chunk-PEZRSDZS.cjs');
|
|
|
14
14
|
|
|
15
15
|
// src/adapters/prisma-adapter/prisma-adapter.ts
|
|
16
16
|
var createTransform = (config, options) => {
|
|
17
|
-
const schema =
|
|
17
|
+
const schema = chunkDVHD6IW3_cjs.getAuthTables(options);
|
|
18
18
|
function getField(model, field) {
|
|
19
19
|
if (field === "id") {
|
|
20
20
|
return field;
|
|
@@ -49,7 +49,7 @@ var createTransform = (config, options) => {
|
|
|
49
49
|
if (value === void 0 && (!fields[field].defaultValue || action === "update")) {
|
|
50
50
|
continue;
|
|
51
51
|
}
|
|
52
|
-
transformedData[fields[field].fieldName || field] =
|
|
52
|
+
transformedData[fields[field].fieldName || field] = chunkDVHD6IW3_cjs.withApplyDefault(
|
|
53
53
|
value,
|
|
54
54
|
fields[field],
|
|
55
55
|
action
|
package/dist/adapters/prisma.js
CHANGED
package/dist/adapters/test.d.cts
CHANGED
package/dist/adapters/test.d.ts
CHANGED
package/dist/api.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkCQNPMJJ3_cjs = require('./chunk-CQNPMJJ3.cjs');
|
|
4
4
|
require('./chunk-NU4SXYJ5.cjs');
|
|
5
5
|
require('./chunk-V6RGXSG4.cjs');
|
|
6
6
|
require('./chunk-S5UORXJH.cjs');
|
|
@@ -19,157 +19,157 @@ require('./chunk-PEZRSDZS.cjs');
|
|
|
19
19
|
|
|
20
20
|
Object.defineProperty(exports, "APIError", {
|
|
21
21
|
enumerable: true,
|
|
22
|
-
get: function () { return
|
|
22
|
+
get: function () { return chunkCQNPMJJ3_cjs.APIError; }
|
|
23
23
|
});
|
|
24
24
|
Object.defineProperty(exports, "callbackOAuth", {
|
|
25
25
|
enumerable: true,
|
|
26
|
-
get: function () { return
|
|
26
|
+
get: function () { return chunkCQNPMJJ3_cjs.callbackOAuth; }
|
|
27
27
|
});
|
|
28
28
|
Object.defineProperty(exports, "changeEmail", {
|
|
29
29
|
enumerable: true,
|
|
30
|
-
get: function () { return
|
|
30
|
+
get: function () { return chunkCQNPMJJ3_cjs.changeEmail; }
|
|
31
31
|
});
|
|
32
32
|
Object.defineProperty(exports, "changePassword", {
|
|
33
33
|
enumerable: true,
|
|
34
|
-
get: function () { return
|
|
34
|
+
get: function () { return chunkCQNPMJJ3_cjs.changePassword; }
|
|
35
35
|
});
|
|
36
36
|
Object.defineProperty(exports, "createAuthEndpoint", {
|
|
37
37
|
enumerable: true,
|
|
38
|
-
get: function () { return
|
|
38
|
+
get: function () { return chunkCQNPMJJ3_cjs.createAuthEndpoint; }
|
|
39
39
|
});
|
|
40
40
|
Object.defineProperty(exports, "createAuthMiddleware", {
|
|
41
41
|
enumerable: true,
|
|
42
|
-
get: function () { return
|
|
42
|
+
get: function () { return chunkCQNPMJJ3_cjs.createAuthMiddleware; }
|
|
43
43
|
});
|
|
44
44
|
Object.defineProperty(exports, "createEmailVerificationToken", {
|
|
45
45
|
enumerable: true,
|
|
46
|
-
get: function () { return
|
|
46
|
+
get: function () { return chunkCQNPMJJ3_cjs.createEmailVerificationToken; }
|
|
47
47
|
});
|
|
48
48
|
Object.defineProperty(exports, "deleteUser", {
|
|
49
49
|
enumerable: true,
|
|
50
|
-
get: function () { return
|
|
50
|
+
get: function () { return chunkCQNPMJJ3_cjs.deleteUser; }
|
|
51
51
|
});
|
|
52
52
|
Object.defineProperty(exports, "deleteUserCallback", {
|
|
53
53
|
enumerable: true,
|
|
54
|
-
get: function () { return
|
|
54
|
+
get: function () { return chunkCQNPMJJ3_cjs.deleteUserCallback; }
|
|
55
55
|
});
|
|
56
56
|
Object.defineProperty(exports, "error", {
|
|
57
57
|
enumerable: true,
|
|
58
|
-
get: function () { return
|
|
58
|
+
get: function () { return chunkCQNPMJJ3_cjs.error; }
|
|
59
59
|
});
|
|
60
60
|
Object.defineProperty(exports, "forgetPassword", {
|
|
61
61
|
enumerable: true,
|
|
62
|
-
get: function () { return
|
|
62
|
+
get: function () { return chunkCQNPMJJ3_cjs.forgetPassword; }
|
|
63
63
|
});
|
|
64
64
|
Object.defineProperty(exports, "forgetPasswordCallback", {
|
|
65
65
|
enumerable: true,
|
|
66
|
-
get: function () { return
|
|
66
|
+
get: function () { return chunkCQNPMJJ3_cjs.forgetPasswordCallback; }
|
|
67
67
|
});
|
|
68
68
|
Object.defineProperty(exports, "freshSessionMiddleware", {
|
|
69
69
|
enumerable: true,
|
|
70
|
-
get: function () { return
|
|
70
|
+
get: function () { return chunkCQNPMJJ3_cjs.freshSessionMiddleware; }
|
|
71
71
|
});
|
|
72
72
|
Object.defineProperty(exports, "getEndpoints", {
|
|
73
73
|
enumerable: true,
|
|
74
|
-
get: function () { return
|
|
74
|
+
get: function () { return chunkCQNPMJJ3_cjs.getEndpoints; }
|
|
75
75
|
});
|
|
76
76
|
Object.defineProperty(exports, "getSession", {
|
|
77
77
|
enumerable: true,
|
|
78
|
-
get: function () { return
|
|
78
|
+
get: function () { return chunkCQNPMJJ3_cjs.getSession; }
|
|
79
79
|
});
|
|
80
80
|
Object.defineProperty(exports, "getSessionFromCtx", {
|
|
81
81
|
enumerable: true,
|
|
82
|
-
get: function () { return
|
|
82
|
+
get: function () { return chunkCQNPMJJ3_cjs.getSessionFromCtx; }
|
|
83
83
|
});
|
|
84
84
|
Object.defineProperty(exports, "linkSocialAccount", {
|
|
85
85
|
enumerable: true,
|
|
86
|
-
get: function () { return
|
|
86
|
+
get: function () { return chunkCQNPMJJ3_cjs.linkSocialAccount; }
|
|
87
87
|
});
|
|
88
88
|
Object.defineProperty(exports, "listSessions", {
|
|
89
89
|
enumerable: true,
|
|
90
|
-
get: function () { return
|
|
90
|
+
get: function () { return chunkCQNPMJJ3_cjs.listSessions; }
|
|
91
91
|
});
|
|
92
92
|
Object.defineProperty(exports, "listUserAccounts", {
|
|
93
93
|
enumerable: true,
|
|
94
|
-
get: function () { return
|
|
94
|
+
get: function () { return chunkCQNPMJJ3_cjs.listUserAccounts; }
|
|
95
95
|
});
|
|
96
96
|
Object.defineProperty(exports, "ok", {
|
|
97
97
|
enumerable: true,
|
|
98
|
-
get: function () { return
|
|
98
|
+
get: function () { return chunkCQNPMJJ3_cjs.ok; }
|
|
99
99
|
});
|
|
100
100
|
Object.defineProperty(exports, "optionsMiddleware", {
|
|
101
101
|
enumerable: true,
|
|
102
|
-
get: function () { return
|
|
102
|
+
get: function () { return chunkCQNPMJJ3_cjs.optionsMiddleware; }
|
|
103
103
|
});
|
|
104
104
|
Object.defineProperty(exports, "originCheck", {
|
|
105
105
|
enumerable: true,
|
|
106
|
-
get: function () { return
|
|
106
|
+
get: function () { return chunkCQNPMJJ3_cjs.originCheck; }
|
|
107
107
|
});
|
|
108
108
|
Object.defineProperty(exports, "originCheckMiddleware", {
|
|
109
109
|
enumerable: true,
|
|
110
|
-
get: function () { return
|
|
110
|
+
get: function () { return chunkCQNPMJJ3_cjs.originCheckMiddleware; }
|
|
111
111
|
});
|
|
112
112
|
Object.defineProperty(exports, "resetPassword", {
|
|
113
113
|
enumerable: true,
|
|
114
|
-
get: function () { return
|
|
114
|
+
get: function () { return chunkCQNPMJJ3_cjs.resetPassword; }
|
|
115
115
|
});
|
|
116
116
|
Object.defineProperty(exports, "revokeOtherSessions", {
|
|
117
117
|
enumerable: true,
|
|
118
|
-
get: function () { return
|
|
118
|
+
get: function () { return chunkCQNPMJJ3_cjs.revokeOtherSessions; }
|
|
119
119
|
});
|
|
120
120
|
Object.defineProperty(exports, "revokeSession", {
|
|
121
121
|
enumerable: true,
|
|
122
|
-
get: function () { return
|
|
122
|
+
get: function () { return chunkCQNPMJJ3_cjs.revokeSession; }
|
|
123
123
|
});
|
|
124
124
|
Object.defineProperty(exports, "revokeSessions", {
|
|
125
125
|
enumerable: true,
|
|
126
|
-
get: function () { return
|
|
126
|
+
get: function () { return chunkCQNPMJJ3_cjs.revokeSessions; }
|
|
127
127
|
});
|
|
128
128
|
Object.defineProperty(exports, "router", {
|
|
129
129
|
enumerable: true,
|
|
130
|
-
get: function () { return
|
|
130
|
+
get: function () { return chunkCQNPMJJ3_cjs.router; }
|
|
131
131
|
});
|
|
132
132
|
Object.defineProperty(exports, "sendVerificationEmail", {
|
|
133
133
|
enumerable: true,
|
|
134
|
-
get: function () { return
|
|
134
|
+
get: function () { return chunkCQNPMJJ3_cjs.sendVerificationEmail; }
|
|
135
135
|
});
|
|
136
136
|
Object.defineProperty(exports, "sendVerificationEmailFn", {
|
|
137
137
|
enumerable: true,
|
|
138
|
-
get: function () { return
|
|
138
|
+
get: function () { return chunkCQNPMJJ3_cjs.sendVerificationEmailFn; }
|
|
139
139
|
});
|
|
140
140
|
Object.defineProperty(exports, "sessionMiddleware", {
|
|
141
141
|
enumerable: true,
|
|
142
|
-
get: function () { return
|
|
142
|
+
get: function () { return chunkCQNPMJJ3_cjs.sessionMiddleware; }
|
|
143
143
|
});
|
|
144
144
|
Object.defineProperty(exports, "setPassword", {
|
|
145
145
|
enumerable: true,
|
|
146
|
-
get: function () { return
|
|
146
|
+
get: function () { return chunkCQNPMJJ3_cjs.setPassword; }
|
|
147
147
|
});
|
|
148
148
|
Object.defineProperty(exports, "signInEmail", {
|
|
149
149
|
enumerable: true,
|
|
150
|
-
get: function () { return
|
|
150
|
+
get: function () { return chunkCQNPMJJ3_cjs.signInEmail; }
|
|
151
151
|
});
|
|
152
152
|
Object.defineProperty(exports, "signInSocial", {
|
|
153
153
|
enumerable: true,
|
|
154
|
-
get: function () { return
|
|
154
|
+
get: function () { return chunkCQNPMJJ3_cjs.signInSocial; }
|
|
155
155
|
});
|
|
156
156
|
Object.defineProperty(exports, "signOut", {
|
|
157
157
|
enumerable: true,
|
|
158
|
-
get: function () { return
|
|
158
|
+
get: function () { return chunkCQNPMJJ3_cjs.signOut; }
|
|
159
159
|
});
|
|
160
160
|
Object.defineProperty(exports, "signUpEmail", {
|
|
161
161
|
enumerable: true,
|
|
162
|
-
get: function () { return
|
|
162
|
+
get: function () { return chunkCQNPMJJ3_cjs.signUpEmail; }
|
|
163
163
|
});
|
|
164
164
|
Object.defineProperty(exports, "unlinkAccount", {
|
|
165
165
|
enumerable: true,
|
|
166
|
-
get: function () { return
|
|
166
|
+
get: function () { return chunkCQNPMJJ3_cjs.unlinkAccount; }
|
|
167
167
|
});
|
|
168
168
|
Object.defineProperty(exports, "updateUser", {
|
|
169
169
|
enumerable: true,
|
|
170
|
-
get: function () { return
|
|
170
|
+
get: function () { return chunkCQNPMJJ3_cjs.updateUser; }
|
|
171
171
|
});
|
|
172
172
|
Object.defineProperty(exports, "verifyEmail", {
|
|
173
173
|
enumerable: true,
|
|
174
|
-
get: function () { return
|
|
174
|
+
get: function () { return chunkCQNPMJJ3_cjs.verifyEmail; }
|
|
175
175
|
});
|
package/dist/api.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { i as AuthEndpoint, j as AuthMiddleware, aF as callbackOAuth, a$ as changeEmail, aX as changePassword, h as createAuthEndpoint, g as createAuthMiddleware, aS as createEmailVerificationToken, aZ as deleteUser, a_ as deleteUserCallback, b0 as error, aP as forgetPassword, aQ as forgetPasswordCallback, aJ as freshSessionMiddleware, aB as getEndpoints, aG as getSession, aH as getSessionFromCtx, b4 as linkSocialAccount, aK as listSessions, b3 as listUserAccounts, b1 as ok, o as optionsMiddleware, b7 as originCheck, b6 as originCheckMiddleware, aR as resetPassword, aN as revokeOtherSessions, aL as revokeSession, aM as revokeSessions, aC as router, aU as sendVerificationEmail, aT as sendVerificationEmailFn, aI as sessionMiddleware, aY as setPassword, aE as signInEmail, aD as signInSocial, aO as signOut, b2 as signUpEmail, b5 as unlinkAccount, aW as updateUser, aV as verifyEmail } from './auth-
|
|
1
|
+
export { i as AuthEndpoint, j as AuthMiddleware, aF as callbackOAuth, a$ as changeEmail, aX as changePassword, h as createAuthEndpoint, g as createAuthMiddleware, aS as createEmailVerificationToken, aZ as deleteUser, a_ as deleteUserCallback, b0 as error, aP as forgetPassword, aQ as forgetPasswordCallback, aJ as freshSessionMiddleware, aB as getEndpoints, aG as getSession, aH as getSessionFromCtx, b4 as linkSocialAccount, aK as listSessions, b3 as listUserAccounts, b1 as ok, o as optionsMiddleware, b7 as originCheck, b6 as originCheckMiddleware, aR as resetPassword, aN as revokeOtherSessions, aL as revokeSession, aM as revokeSessions, aC as router, aU as sendVerificationEmail, aT as sendVerificationEmailFn, aI as sessionMiddleware, aY as setPassword, aE as signInEmail, aD as signInSocial, aO as signOut, b2 as signUpEmail, b5 as unlinkAccount, aW as updateUser, aV as verifyEmail } from './auth-CGJnuSyG.cjs';
|
|
2
2
|
import './helper-Bi8FQwDD.cjs';
|
|
3
3
|
export { APIError } from 'better-call';
|
|
4
4
|
import 'zod';
|
package/dist/api.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { i as AuthEndpoint, j as AuthMiddleware, aF as callbackOAuth, a$ as changeEmail, aX as changePassword, h as createAuthEndpoint, g as createAuthMiddleware, aS as createEmailVerificationToken, aZ as deleteUser, a_ as deleteUserCallback, b0 as error, aP as forgetPassword, aQ as forgetPasswordCallback, aJ as freshSessionMiddleware, aB as getEndpoints, aG as getSession, aH as getSessionFromCtx, b4 as linkSocialAccount, aK as listSessions, b3 as listUserAccounts, b1 as ok, o as optionsMiddleware, b7 as originCheck, b6 as originCheckMiddleware, aR as resetPassword, aN as revokeOtherSessions, aL as revokeSession, aM as revokeSessions, aC as router, aU as sendVerificationEmail, aT as sendVerificationEmailFn, aI as sessionMiddleware, aY as setPassword, aE as signInEmail, aD as signInSocial, aO as signOut, b2 as signUpEmail, b5 as unlinkAccount, aW as updateUser, aV as verifyEmail } from './auth-
|
|
1
|
+
export { i as AuthEndpoint, j as AuthMiddleware, aF as callbackOAuth, a$ as changeEmail, aX as changePassword, h as createAuthEndpoint, g as createAuthMiddleware, aS as createEmailVerificationToken, aZ as deleteUser, a_ as deleteUserCallback, b0 as error, aP as forgetPassword, aQ as forgetPasswordCallback, aJ as freshSessionMiddleware, aB as getEndpoints, aG as getSession, aH as getSessionFromCtx, b4 as linkSocialAccount, aK as listSessions, b3 as listUserAccounts, b1 as ok, o as optionsMiddleware, b7 as originCheck, b6 as originCheckMiddleware, aR as resetPassword, aN as revokeOtherSessions, aL as revokeSession, aM as revokeSessions, aC as router, aU as sendVerificationEmail, aT as sendVerificationEmailFn, aI as sessionMiddleware, aY as setPassword, aE as signInEmail, aD as signInSocial, aO as signOut, b2 as signUpEmail, b5 as unlinkAccount, aW as updateUser, aV as verifyEmail } from './auth-BBnJHOLM.js';
|
|
2
2
|
import './helper-Bi8FQwDD.js';
|
|
3
3
|
export { APIError } from 'better-call';
|
|
4
4
|
import 'zod';
|
package/dist/api.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { APIError, callbackOAuth, changeEmail, changePassword, createAuthEndpoint, createAuthMiddleware, createEmailVerificationToken, deleteUser, deleteUserCallback, error, forgetPassword, forgetPasswordCallback, freshSessionMiddleware, getEndpoints, getSession, getSessionFromCtx, linkSocialAccount, listSessions, listUserAccounts, ok, optionsMiddleware, originCheck, originCheckMiddleware, resetPassword, revokeOtherSessions, revokeSession, revokeSessions, router, sendVerificationEmail, sendVerificationEmailFn, sessionMiddleware, setPassword, signInEmail, signInSocial, signOut, signUpEmail, unlinkAccount, updateUser, verifyEmail } from './chunk-
|
|
1
|
+
export { APIError, callbackOAuth, changeEmail, changePassword, createAuthEndpoint, createAuthMiddleware, createEmailVerificationToken, deleteUser, deleteUserCallback, error, forgetPassword, forgetPasswordCallback, freshSessionMiddleware, getEndpoints, getSession, getSessionFromCtx, linkSocialAccount, listSessions, listUserAccounts, ok, optionsMiddleware, originCheck, originCheckMiddleware, resetPassword, revokeOtherSessions, revokeSession, revokeSessions, router, sendVerificationEmail, sendVerificationEmailFn, sessionMiddleware, setPassword, signInEmail, signInSocial, signOut, signUpEmail, unlinkAccount, updateUser, verifyEmail } from './chunk-KALC2G3Y.js';
|
|
2
2
|
import './chunk-VXDYNCOX.js';
|
|
3
3
|
import './chunk-GTQM7JU7.js';
|
|
4
4
|
import './chunk-XFCIANZX.js';
|
|
@@ -1327,7 +1327,7 @@ type BetterAuthOptions = {
|
|
|
1327
1327
|
/**
|
|
1328
1328
|
* List of trusted origins.
|
|
1329
1329
|
*/
|
|
1330
|
-
trustedOrigins?: string[];
|
|
1330
|
+
trustedOrigins?: string[] | ((request: Request) => string[]);
|
|
1331
1331
|
/**
|
|
1332
1332
|
* Rate limiting configuration
|
|
1333
1333
|
*/
|
|
@@ -1508,7 +1508,7 @@ type BetterAuthOptions = {
|
|
|
1508
1508
|
* If the hook returns an object, it'll be used instead of the original data
|
|
1509
1509
|
*/
|
|
1510
1510
|
before?: (user: User) => Promise<boolean | void | {
|
|
1511
|
-
data: User & Record<string, any>;
|
|
1511
|
+
data: Partial<User> & Record<string, any>;
|
|
1512
1512
|
}>;
|
|
1513
1513
|
/**
|
|
1514
1514
|
* Hook that is called after a user is created.
|
|
@@ -1541,7 +1541,7 @@ type BetterAuthOptions = {
|
|
|
1541
1541
|
* If the hook returns an object, it'll be used instead of the original data
|
|
1542
1542
|
*/
|
|
1543
1543
|
before?: (session: Session) => Promise<boolean | void | {
|
|
1544
|
-
data: Session & Record<string, any>;
|
|
1544
|
+
data: Partial<Session> & Record<string, any>;
|
|
1545
1545
|
}>;
|
|
1546
1546
|
/**
|
|
1547
1547
|
* Hook that is called after a session is updated.
|
|
@@ -1577,7 +1577,7 @@ type BetterAuthOptions = {
|
|
|
1577
1577
|
* If the hook returns an object, it'll be used instead of the original data
|
|
1578
1578
|
*/
|
|
1579
1579
|
before?: (account: Account) => Promise<boolean | void | {
|
|
1580
|
-
data: Account & Record<string, any>;
|
|
1580
|
+
data: Partial<Account> & Record<string, any>;
|
|
1581
1581
|
}>;
|
|
1582
1582
|
/**
|
|
1583
1583
|
* Hook that is called after a account is created.
|
|
@@ -1613,7 +1613,7 @@ type BetterAuthOptions = {
|
|
|
1613
1613
|
* If the hook returns an object, it'll be used instead of the original data
|
|
1614
1614
|
*/
|
|
1615
1615
|
before?: (verification: Verification) => Promise<boolean | void | {
|
|
1616
|
-
data: Verification & Record<string, any>;
|
|
1616
|
+
data: Partial<Verification> & Record<string, any>;
|
|
1617
1617
|
}>;
|
|
1618
1618
|
/**
|
|
1619
1619
|
* Hook that is called after a verification is created.
|
|
@@ -1327,7 +1327,7 @@ type BetterAuthOptions = {
|
|
|
1327
1327
|
/**
|
|
1328
1328
|
* List of trusted origins.
|
|
1329
1329
|
*/
|
|
1330
|
-
trustedOrigins?: string[];
|
|
1330
|
+
trustedOrigins?: string[] | ((request: Request) => string[]);
|
|
1331
1331
|
/**
|
|
1332
1332
|
* Rate limiting configuration
|
|
1333
1333
|
*/
|
|
@@ -1508,7 +1508,7 @@ type BetterAuthOptions = {
|
|
|
1508
1508
|
* If the hook returns an object, it'll be used instead of the original data
|
|
1509
1509
|
*/
|
|
1510
1510
|
before?: (user: User) => Promise<boolean | void | {
|
|
1511
|
-
data: User & Record<string, any>;
|
|
1511
|
+
data: Partial<User> & Record<string, any>;
|
|
1512
1512
|
}>;
|
|
1513
1513
|
/**
|
|
1514
1514
|
* Hook that is called after a user is created.
|
|
@@ -1541,7 +1541,7 @@ type BetterAuthOptions = {
|
|
|
1541
1541
|
* If the hook returns an object, it'll be used instead of the original data
|
|
1542
1542
|
*/
|
|
1543
1543
|
before?: (session: Session) => Promise<boolean | void | {
|
|
1544
|
-
data: Session & Record<string, any>;
|
|
1544
|
+
data: Partial<Session> & Record<string, any>;
|
|
1545
1545
|
}>;
|
|
1546
1546
|
/**
|
|
1547
1547
|
* Hook that is called after a session is updated.
|
|
@@ -1577,7 +1577,7 @@ type BetterAuthOptions = {
|
|
|
1577
1577
|
* If the hook returns an object, it'll be used instead of the original data
|
|
1578
1578
|
*/
|
|
1579
1579
|
before?: (account: Account) => Promise<boolean | void | {
|
|
1580
|
-
data: Account & Record<string, any>;
|
|
1580
|
+
data: Partial<Account> & Record<string, any>;
|
|
1581
1581
|
}>;
|
|
1582
1582
|
/**
|
|
1583
1583
|
* Hook that is called after a account is created.
|
|
@@ -1613,7 +1613,7 @@ type BetterAuthOptions = {
|
|
|
1613
1613
|
* If the hook returns an object, it'll be used instead of the original data
|
|
1614
1614
|
*/
|
|
1615
1615
|
before?: (verification: Verification) => Promise<boolean | void | {
|
|
1616
|
-
data: Verification & Record<string, any>;
|
|
1616
|
+
data: Partial<Verification> & Record<string, any>;
|
|
1617
1617
|
}>;
|
|
1618
1618
|
/**
|
|
1619
1619
|
* Hook that is called after a verification is created.
|