Skip to content

Commit 55e6a9e

Browse files
committed
fix: use file to avoid weird errors
1 parent c0a268e commit 55e6a9e

File tree

6 files changed

+5
-5
lines changed

6 files changed

+5
-5
lines changed

packages/nuxt/src/runtime/admin/plugin-auth-user.server.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { getCookie } from 'h3'
55
// FirebaseError is an interface here but is a class in firebase/app
66
import type { FirebaseError } from 'firebase-admin'
77
import { log } from '../logging'
8-
import { AUTH_COOKIE_NAME, UserSymbol } from '../shared'
8+
import { AUTH_COOKIE_NAME, UserSymbol } from '../constants'
99
import { defineNuxtPlugin, useRequestEvent } from '#app'
1010

1111
/**

packages/nuxt/src/runtime/app/plugin.server.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { deleteApp, FirebaseApp, initializeApp } from 'firebase/app'
22
import { User } from 'firebase/auth'
33
import LRU from 'lru-cache'
44
import { log } from '../logging'
5-
import { UserSymbol } from '../shared'
5+
import { UserSymbol } from '../constants'
66
import { defineNuxtPlugin, useAppConfig } from '#app'
77

88
// TODO: allow customizing

packages/nuxt/src/runtime/auth/api.session-verification.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import {
88
deleteCookie,
99
} from 'h3'
1010
import { log } from '../logging'
11-
import { AUTH_COOKIE_MAX_AGE, AUTH_COOKIE_NAME } from '../shared'
11+
import { AUTH_COOKIE_MAX_AGE, AUTH_COOKIE_NAME } from '../constants'
1212

1313
// This version is used at https://github.com/FirebaseExtended/firebase-framework-tools/blob/e69f5bdd44695274ad88dbb4e21aac778ba60cc8/src/firebase-aware.ts#L39 but doesn't work locally. Should it maybe be used in production only? Seems unlikely.
1414

packages/nuxt/src/runtime/auth/api.session.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import {
55
defineEventHandler,
66
deleteCookie,
77
} from 'h3'
8-
import { AUTH_COOKIE_NAME, AUTH_COOKIE_MAX_AGE } from '../shared'
8+
import { AUTH_COOKIE_NAME, AUTH_COOKIE_MAX_AGE } from '../constants'
99

1010
/**
1111
* Setups an API endpoint to be used by the client to mint a cookie based auth session.

packages/nuxt/src/runtime/auth/plugin.server.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import type { FirebaseApp } from 'firebase/app'
22
import type { User } from 'firebase/auth'
33
import { VueFireAuthServer } from 'vuefire/server'
44
import { log } from '../logging'
5-
import { UserSymbol } from '../shared'
5+
import { UserSymbol } from '../constants'
66
import { defineNuxtPlugin } from '#app'
77

88
/**

0 commit comments

Comments
 (0)