Skip to content

Commit 90ce9b0

Browse files
committed
fix: add export
1 parent 214661b commit 90ce9b0

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

src/cli/main.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ const main = defineCommand({
1212
meta: {
1313
name: 'nuxt-users',
1414
description: 'CLI for Nuxt Users Module - Manage users, migrations, and database operations',
15-
version: '1.14.0'
15+
version: '1.15.0'
1616
},
1717
subCommands: {
1818
migrate,

src/runtime/composables/useServerAuth.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ import type { ModuleOptions, UserWithoutPassword } from '../../types'
2222
*/
2323
export const useServerAuth = () => {
2424
const getCurrentUser = async (event: H3Event): Promise<UserWithoutPassword | null> => {
25+
// This will be available at runtime when used in a Nuxt application
2526
const { useRuntimeConfig } = await import('#imports')
2627
// Get the auth token from cookies
2728
const token = getCookie(event, 'auth_token')

src/runtime/server/utils/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@ export { createPasswordResetTokensTable } from './create-password-reset-tokens-t
66
export { createMigrationsTable } from './create-migrations-table'
77
export { runMigrations } from './migrate'
88
export { useNuxtUsersDatabase } from '../../composables/useNuxtUsersDatabase'
9+
export { useServerAuth } from '../../composables/useServerAuth'

0 commit comments

Comments
 (0)