Skip to content

Commit

Permalink
chore: ignore type error until Nuxt v3.13
Browse files Browse the repository at this point in the history
  • Loading branch information
danielroe committed Aug 19, 2024
1 parent 37485dc commit 1cf4a9c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 12 deletions.
8 changes: 2 additions & 6 deletions src/runtime/middleware/auth-logged-in.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
import {
abortNavigation,
createError,
defineNuxtRouteMiddleware,
useNuxtApp,
} from '#imports'
import { abortNavigation, createError, defineNuxtRouteMiddleware, useNuxtApp } from '#imports'

export default defineNuxtRouteMiddleware(() => {
// @ts-expect-error will be fixed in Nuxt v3.13
if (!useNuxtApp().$auth.loggedIn) {
if (import.meta.server) {
return createError({
Expand Down
8 changes: 2 additions & 6 deletions src/runtime/middleware/auth-logged-out.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
import {
abortNavigation,
createError,
defineNuxtRouteMiddleware,
useNuxtApp,
} from '#imports'
import { abortNavigation, createError, defineNuxtRouteMiddleware, useNuxtApp } from '#imports'

export default defineNuxtRouteMiddleware(() => {
// @ts-expect-error will be fixed in Nuxt v3.13
if (useNuxtApp().$auth.loggedIn) {
if (import.meta.server) {
return createError({
Expand Down

0 comments on commit 1cf4a9c

Please sign in to comment.