Skip to content

Commit ff8c376

Browse files
committed
fix: (temporary) strange test failing
1 parent 159f334 commit ff8c376

File tree

3 files changed

+6
-11
lines changed

3 files changed

+6
-11
lines changed

playground/nuxt.config.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,10 @@ export default defineNuxtConfig({
1111
whitelist: ['/noauth'],
1212
tokenExpiration: 10,
1313
// this makes the tests fails for some unknown reason
14-
// permissions: {
15-
// admin: ['*'],
16-
// },
14+
// without this you can not login to the playground
15+
/* permissions: {
16+
admin: ['*'],
17+
}, */
1718
},
1819
passwordValidation: {
1920
minLength: 3,

playground/pages/profile.vue

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<script setup lang="ts">
2-
/* import type { UserWithoutPassword } from '../../src/types'
2+
import type { UserWithoutPassword } from '../../src/types'
33
44
const handleProfileSuccess = (user: UserWithoutPassword) => {
55
console.log('Profile loaded successfully:', user)
@@ -15,7 +15,7 @@ const handlePasswordUpdated = () => {
1515
1616
const handlePasswordError = (error: string) => {
1717
console.error('Password update error:', error)
18-
} */
18+
}
1919
</script>
2020

2121
<template>
@@ -28,15 +28,12 @@ const handlePasswordError = (error: string) => {
2828

2929
<NUsersProfileInfo />
3030

31-
<!--
32-
TODO: Add reset password form, now this prevents profile to load with no error messages
3331
<NUsersResetPasswordForm
3432
@success="handleProfileSuccess"
3533
@error="handleProfileError"
3634
@password-updated="handlePasswordUpdated"
3735
@password-error="handlePasswordError"
3836
/>
39-
-->
4037

4138
<div class="navigation">
4239
<NuxtLink

src/utils/index.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,3 @@ export type {
99
LoginFormData,
1010
ModuleOptions
1111
} from '../types'
12-
13-
// Export server utilities for consumers (server-side only)
14-
export { getLastLoginTime, findUserByEmail, getCurrentUserFromToken } from '../runtime/server/utils/user'

0 commit comments

Comments
 (0)