rimecms 0.25.9 → 0.25.10
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.
|
@@ -5,7 +5,7 @@ export declare function getBaseAuthConfig<const C extends Config>(ctx: {
|
|
|
5
5
|
mailer: MailerActions | undefined;
|
|
6
6
|
config: ConfigContext<C>;
|
|
7
7
|
}): {
|
|
8
|
-
readonly
|
|
8
|
+
readonly baseURL: string | undefined;
|
|
9
9
|
readonly plugins: ({
|
|
10
10
|
id: "api-key";
|
|
11
11
|
$ERROR_CODES: {
|
|
@@ -4,7 +4,7 @@ import { betterAuthAfterHook, betterAuthBeforeHook } from './better-auth-hooks.j
|
|
|
4
4
|
import { accessControl, admin, staff, user } from './better-auth-permissions.js';
|
|
5
5
|
export function getBaseAuthConfig(ctx) {
|
|
6
6
|
const betterAuthOptions = {
|
|
7
|
-
|
|
7
|
+
baseURL: ctx.config.raw.siteUrl,
|
|
8
8
|
plugins: configurePlugins(ctx.config.raw),
|
|
9
9
|
rateLimit: {
|
|
10
10
|
enabled: !dev,
|
|
@@ -1909,7 +1909,7 @@ export declare const buildConfig: <const C extends Config>(config: C) => Promise
|
|
|
1909
1909
|
plugins: any;
|
|
1910
1910
|
} ? C["$auth"]["plugins"] : [])[number])[];
|
|
1911
1911
|
database: (options: import("better-auth/types").BetterAuthOptions) => import("better-auth/types").DBAdapter<import("better-auth/types").BetterAuthOptions>;
|
|
1912
|
-
|
|
1912
|
+
baseURL: string | undefined;
|
|
1913
1913
|
rateLimit: {
|
|
1914
1914
|
readonly enabled: boolean;
|
|
1915
1915
|
readonly window: 10;
|
|
@@ -3891,7 +3891,7 @@ export declare const buildConfig: <const C extends Config>(config: C) => Promise
|
|
|
3891
3891
|
plugins: any;
|
|
3892
3892
|
} ? C["$auth"]["plugins"] : [])[number])[];
|
|
3893
3893
|
database: (options: import("better-auth/types").BetterAuthOptions) => import("better-auth/types").DBAdapter<import("better-auth/types").BetterAuthOptions>;
|
|
3894
|
-
|
|
3894
|
+
baseURL: string | undefined;
|
|
3895
3895
|
rateLimit: {
|
|
3896
3896
|
readonly enabled: boolean;
|
|
3897
3897
|
readonly window: 10;
|
|
@@ -1921,7 +1921,7 @@ export declare function createRime<const C extends Config>(config: BuildConfig<C
|
|
|
1921
1921
|
plugins: any;
|
|
1922
1922
|
} ? C["$auth"]["plugins"] : [])[number])[];
|
|
1923
1923
|
database: (options: import("better-auth/*").BetterAuthOptions) => import("better-auth/*").DBAdapter<import("better-auth/*").BetterAuthOptions>;
|
|
1924
|
-
|
|
1924
|
+
baseURL: string | undefined;
|
|
1925
1925
|
rateLimit: {
|
|
1926
1926
|
readonly enabled: boolean;
|
|
1927
1927
|
readonly window: 10;
|
|
@@ -3927,7 +3927,7 @@ export declare function createRime<const C extends Config>(config: BuildConfig<C
|
|
|
3927
3927
|
plugins: any;
|
|
3928
3928
|
} ? C["$auth"]["plugins"] : [])[number])[];
|
|
3929
3929
|
database: (options: import("better-auth/*").BetterAuthOptions) => import("better-auth/*").DBAdapter<import("better-auth/*").BetterAuthOptions>;
|
|
3930
|
-
|
|
3930
|
+
baseURL: string | undefined;
|
|
3931
3931
|
rateLimit: {
|
|
3932
3932
|
readonly enabled: boolean;
|
|
3933
3933
|
readonly window: 10;
|