@onmax/nuxt-better-auth 0.0.2-alpha.16 → 0.0.2-alpha.17

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onmax/nuxt-better-auth",
3
- "version": "0.0.2-alpha.16",
3
+ "version": "0.0.2-alpha.17",
4
4
  "configKey": "auth",
5
5
  "compatibility": {
6
6
  "nuxt": ">=3.0.0"
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.2-alpha.16";
14
+ const version = "0.0.2-alpha.17";
15
15
 
16
16
  function setupDevTools(nuxt) {
17
17
  nuxt.hook("devtools:customTabs", (tabs) => {
@@ -384,7 +384,7 @@ export default defineClientAuth({})
384
384
  if (secondaryStorageEnabled && !nuxt.options.alias["hub:kv"]) {
385
385
  throw new Error("[nuxt-better-auth] hub:kv not found. Ensure @nuxthub/core is loaded before this module and hub.kv is enabled.");
386
386
  }
387
- const secondaryStorageCode = secondaryStorageEnabled ? `import { kv } from '../hub/kv.mjs'
387
+ const secondaryStorageCode = secondaryStorageEnabled ? `import { kv } from 'hub:kv'
388
388
  export function createSecondaryStorage() {
389
389
  return {
390
390
  get: async (key) => kv.get(\`_auth:\${key}\`),
@@ -402,7 +402,7 @@ export function createSecondaryStorage() {
402
402
  const camelCase = (options.schema?.casing ?? getHubCasing(hub)) !== "snake_case";
403
403
  let databaseCode;
404
404
  if (hasHubDb) {
405
- databaseCode = `import { db, schema } from '../hub/db.mjs'
405
+ databaseCode = `import { db, schema } from 'hub:db'
406
406
  import { drizzleAdapter } from 'better-auth/adapters/drizzle'
407
407
  const rawDialect = '${hubDialect}'
408
408
  const dialect = rawDialect === 'postgresql' ? 'pg' : rawDialect
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@onmax/nuxt-better-auth",
3
3
  "type": "module",
4
- "version": "0.0.2-alpha.16",
4
+ "version": "0.0.2-alpha.17",
5
5
  "packageManager": "pnpm@10.15.1",
6
6
  "description": "Nuxt module for Better Auth integration with NuxtHub, route protection, session management, and role-based access",
7
7
  "author": "onmax",
@@ -96,7 +96,7 @@
96
96
  "@nuxt/module-builder": "^1.0.2",
97
97
  "@nuxt/schema": "^4.2.2",
98
98
  "@nuxt/test-utils": "^3.21.0",
99
- "@nuxthub/core": "^0.10.3",
99
+ "@nuxthub/core": "^0.10.5",
100
100
  "@types/better-sqlite3": "^7.6.13",
101
101
  "@types/node": "latest",
102
102
  "better-auth": "^1.5.0-beta.3",