@rio.js/enterprise 1.4.7 → 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.
@@ -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"] }),
@@ -2,10 +2,13 @@ import { t as Connection } from "./db-BO4CGoP4.mjs";
2
2
  import { BetterAuthOptions, BetterAuthPlugin, betterAuth } from "better-auth";
3
3
 
4
4
  //#region src/better-auth.d.ts
5
- declare function createAuthSystem(options: {
5
+ declare function createAuthSystem({
6
+ plugins,
7
+ db,
8
+ ...options
9
+ }: {
6
10
  plugins?: BetterAuthPlugin[];
7
11
  db: Connection;
8
- options?: BetterAuthOptions;
9
- }): ReturnType<typeof betterAuth>;
12
+ } & BetterAuthOptions): ReturnType<typeof betterAuth>;
10
13
  //#endregion
11
14
  export { createAuthSystem as t };
@@ -1,3 +1,3 @@
1
1
  import "./db-BO4CGoP4.mjs";
2
- import { t as createAuthSystem } from "./better-auth-C0OyhbaH.mjs";
2
+ import { t as createAuthSystem } from "./better-auth-BYgmS3P9.mjs";
3
3
  export { createAuthSystem };
@@ -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-DcLpU_ff.mjs";
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-C0OyhbaH.mjs";
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-DcLpU_ff.mjs";
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-DcLpU_ff.mjs";
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,6 +1,6 @@
1
1
  {
2
2
  "name": "@rio.js/enterprise",
3
- "version": "1.4.7",
3
+ "version": "1.4.8",
4
4
  "type": "module",
5
5
  "scripts": {
6
6
  "dev": "srvx --import=jiti/register --port 3001",