diff --git a/webv2/middleware/auth.ts b/webv2/middleware/auth.ts index b9580c5..dad1fab 100644 --- a/webv2/middleware/auth.ts +++ b/webv2/middleware/auth.ts @@ -4,7 +4,7 @@ export default defineNuxtRouteMiddleware(async (to) => { } try { - const user: IUser = await $fetch('/api/users/@me') + const user = await $fetch('/api/users/@me') as IUser if (!user._id) { throw createError({ statusCode: 500, statusMessage: 'No user was found' })