better-auth-nuxt 0.0.10-beta.23 → 0.0.10-beta.24
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/module.json +1 -1
- package/dist/module.mjs +1 -1
- package/dist/runtime/config.d.ts +3 -2
- package/dist/runtime/config.js +1 -2
- package/package.json +1 -1
package/dist/module.json
CHANGED
package/dist/module.mjs
CHANGED
|
@@ -11,7 +11,7 @@ import { generateDrizzleSchema as generateDrizzleSchema$1 } from '@better-auth/c
|
|
|
11
11
|
import { getAuthTables } from 'better-auth/db';
|
|
12
12
|
export { defineClientAuth, defineServerAuth } from '../dist/runtime/config.js';
|
|
13
13
|
|
|
14
|
-
const version = "0.0.10-beta.
|
|
14
|
+
const version = "0.0.10-beta.24";
|
|
15
15
|
|
|
16
16
|
function dialectToProvider(dialect) {
|
|
17
17
|
return dialect === "postgresql" ? "pg" : dialect;
|
package/dist/runtime/config.d.ts
CHANGED
|
@@ -2,7 +2,6 @@ import type { BetterAuthOptions } from 'better-auth';
|
|
|
2
2
|
import type { ClientOptions } from 'better-auth/client';
|
|
3
3
|
import type { CasingOption } from '../schema-generator.js';
|
|
4
4
|
import type { ServerAuthContext } from './types/augment.js';
|
|
5
|
-
import { createAuthClient } from 'better-auth/vue';
|
|
6
5
|
export type { ServerAuthContext };
|
|
7
6
|
export interface ClientAuthContext {
|
|
8
7
|
siteUrl: string;
|
|
@@ -46,4 +45,6 @@ export interface AuthPrivateRuntimeConfig {
|
|
|
46
45
|
secondaryStorage: boolean;
|
|
47
46
|
}
|
|
48
47
|
export declare function defineServerAuth<T extends ServerAuthConfig>(config: T | ((ctx: ServerAuthContext) => T)): (ctx: ServerAuthContext) => T;
|
|
49
|
-
export declare function defineClientAuth<T extends ClientAuthConfig>(config: T | ((ctx: ClientAuthContext) => T)): (baseURL: string) =>
|
|
48
|
+
export declare function defineClientAuth<T extends ClientAuthConfig>(config: T | ((ctx: ClientAuthContext) => T)): (baseURL: string) => T & {
|
|
49
|
+
baseURL: string;
|
|
50
|
+
};
|
package/dist/runtime/config.js
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { createAuthClient } from "better-auth/vue";
|
|
2
1
|
export function defineServerAuth(config) {
|
|
3
2
|
return typeof config === "function" ? config : () => config;
|
|
4
3
|
}
|
|
@@ -6,6 +5,6 @@ export function defineClientAuth(config) {
|
|
|
6
5
|
return (baseURL) => {
|
|
7
6
|
const ctx = { siteUrl: baseURL };
|
|
8
7
|
const resolved = typeof config === "function" ? config(ctx) : config;
|
|
9
|
-
return
|
|
8
|
+
return { ...resolved, baseURL };
|
|
10
9
|
};
|
|
11
10
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "better-auth-nuxt",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.0.10-beta.
|
|
4
|
+
"version": "0.0.10-beta.24",
|
|
5
5
|
"description": "Nuxt module for Better Auth integration with NuxtHub, route protection, session management, and role-based access",
|
|
6
6
|
"author": "onmax",
|
|
7
7
|
"license": "MIT",
|