@rio.js/enterprise 1.4.6 → 1.4.8
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/{better-auth-CJiGwyjC.mjs → better-auth-BXnlm7Qr.mjs} +3 -2
- package/dist/better-auth-BYgmS3P9.d.mts +14 -0
- package/dist/better-auth.d.mts +1 -1
- package/dist/better-auth.mjs +1 -1
- package/dist/index.d.mts +1 -1
- package/dist/index.mjs +1 -1
- package/dist/server.mjs +1 -1
- package/package.json +1 -1
- package/dist/better-auth-Bf2gcwDi.d.mts +0 -10
|
@@ -502,7 +502,7 @@ async function getOrCreatePersonalOrganization(userId, userName) {
|
|
|
502
502
|
});
|
|
503
503
|
return org;
|
|
504
504
|
}
|
|
505
|
-
function createAuthSystem(options) {
|
|
505
|
+
function createAuthSystem({ plugins, db, ...options }) {
|
|
506
506
|
return betterAuth({
|
|
507
507
|
plugins: [
|
|
508
508
|
admin({ adminUserIds: ["user_cmhz0nka100003xv322cn6ffp"] }),
|
|
@@ -648,7 +648,8 @@ function createAuthSystem(options) {
|
|
|
648
648
|
transaction: true
|
|
649
649
|
}),
|
|
650
650
|
experimental: { joins: true },
|
|
651
|
-
graph: { enabled: true }
|
|
651
|
+
graph: { enabled: true },
|
|
652
|
+
...options
|
|
652
653
|
});
|
|
653
654
|
}
|
|
654
655
|
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { t as Connection } from "./db-BO4CGoP4.mjs";
|
|
2
|
+
import { BetterAuthOptions, BetterAuthPlugin, betterAuth } from "better-auth";
|
|
3
|
+
|
|
4
|
+
//#region src/better-auth.d.ts
|
|
5
|
+
declare function createAuthSystem({
|
|
6
|
+
plugins,
|
|
7
|
+
db,
|
|
8
|
+
...options
|
|
9
|
+
}: {
|
|
10
|
+
plugins?: BetterAuthPlugin[];
|
|
11
|
+
db: Connection;
|
|
12
|
+
} & BetterAuthOptions): ReturnType<typeof betterAuth>;
|
|
13
|
+
//#endregion
|
|
14
|
+
export { createAuthSystem as t };
|
package/dist/better-auth.d.mts
CHANGED
package/dist/better-auth.mjs
CHANGED
|
@@ -12,6 +12,6 @@ import "./parser-bL7W2mQ0-JPVS1FmJ.mjs";
|
|
|
12
12
|
import "./client--1_AEBPu-Dl2Y0Yen.mjs";
|
|
13
13
|
import "./dist-Dt0ifDbX.mjs";
|
|
14
14
|
import "./adapter-factory-BTRALCLD-Bv_0fQx-.mjs";
|
|
15
|
-
import { t as createAuthSystem } from "./better-auth-
|
|
15
|
+
import { t as createAuthSystem } from "./better-auth-BXnlm7Qr.mjs";
|
|
16
16
|
|
|
17
17
|
export { createAuthSystem };
|
package/dist/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "./db-BO4CGoP4.mjs";
|
|
2
|
-
import { t as createAuthSystem } from "./better-auth-
|
|
2
|
+
import { t as createAuthSystem } from "./better-auth-BYgmS3P9.mjs";
|
|
3
3
|
import { parseSetCookieHeader } from "better-auth/cookies";
|
|
4
4
|
export * from "better-auth";
|
|
5
5
|
export * from "better-auth/crypto";
|
package/dist/index.mjs
CHANGED
|
@@ -12,6 +12,6 @@ import "./parser-bL7W2mQ0-JPVS1FmJ.mjs";
|
|
|
12
12
|
import "./client--1_AEBPu-Dl2Y0Yen.mjs";
|
|
13
13
|
import { n as createTelemetry, r as getTelemetryAuthConfig, t as betterAuth } from "./dist-Dt0ifDbX.mjs";
|
|
14
14
|
import "./adapter-factory-BTRALCLD-Bv_0fQx-.mjs";
|
|
15
|
-
import { t as createAuthSystem } from "./better-auth-
|
|
15
|
+
import { t as createAuthSystem } from "./better-auth-BXnlm7Qr.mjs";
|
|
16
16
|
|
|
17
17
|
export { APIError$1 as APIError, BASE_ERROR_CODES, BetterAuthError, ENV, HIDE_METADATA, TTY_COLORS, accountSchema, betterAuth, capitalizeFirstLetter, clientCredentialsToken, constantTimeEqual, coreSchema, createAuthSystem, createAuthorizationCodeRequest, createAuthorizationURL, createClientCredentialsTokenRequest, createLogger, createRefreshAccessTokenRequest, createTelemetry, defineErrorCodes, env, generateCodeChallenge, generateId, generateRandomString, generateState, getBooleanEnvVar, getColorDepth, getCurrentAdapter, getCurrentGraphContext, getCurrentTransactionAdapter, getEnvVar, getOAuth2Tokens, getTelemetryAuthConfig, hashPassword, initializeGraph, invariant, isDevelopment, isProduction, isTest, levels, logger, nodeENV, parseSetCookieHeader, parseState, rateLimitSchema, refreshAccessToken, sessionSchema, shouldPublishLog, signJWT, symmetricDecodeJWT, symmetricDecrypt, symmetricEncodeJWT, symmetricEncrypt, userSchema, validateAuthorizationCode, validateToken, verificationSchema, verifyJWT, verifyPassword };
|
package/dist/server.mjs
CHANGED
|
@@ -12,7 +12,7 @@ import "./parser-bL7W2mQ0-JPVS1FmJ.mjs";
|
|
|
12
12
|
import "./client--1_AEBPu-Dl2Y0Yen.mjs";
|
|
13
13
|
import "./dist-Dt0ifDbX.mjs";
|
|
14
14
|
import "./adapter-factory-BTRALCLD-Bv_0fQx-.mjs";
|
|
15
|
-
import { t as createAuthSystem } from "./better-auth-
|
|
15
|
+
import { t as createAuthSystem } from "./better-auth-BXnlm7Qr.mjs";
|
|
16
16
|
import { n as db_exports, r as schema } from "./db-CZhOn-9W.mjs";
|
|
17
17
|
import "dotenv/config";
|
|
18
18
|
import { cors } from "@elysiajs/cors";
|
package/package.json
CHANGED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { t as Connection } from "./db-BO4CGoP4.mjs";
|
|
2
|
-
import { BetterAuthPlugin, betterAuth } from "better-auth";
|
|
3
|
-
|
|
4
|
-
//#region src/better-auth.d.ts
|
|
5
|
-
declare function createAuthSystem(options: {
|
|
6
|
-
plugins?: BetterAuthPlugin[];
|
|
7
|
-
db: Connection;
|
|
8
|
-
}): ReturnType<typeof betterAuth>;
|
|
9
|
-
//#endregion
|
|
10
|
-
export { createAuthSystem as t };
|