File tree Expand file tree Collapse file tree 3 files changed +18
-2
lines changed Expand file tree Collapse file tree 3 files changed +18
-2
lines changed Original file line number Diff line number Diff line change @@ -113,6 +113,10 @@ const VueFire: NuxtModule<VueFireNuxtModuleOptions> =
113
113
}
114
114
115
115
nuxt . hook ( 'modules:done' , ( ) => {
116
+ addPlugin ( resolve ( runtimeDir , 'plugins/admin.server' ) )
117
+
118
+ addPlugin ( resolve ( runtimeDir , 'plugins/auth.client' ) )
119
+
116
120
// plugin are added in reverse order
117
121
addPluginTemplate ( {
118
122
src : normalize ( resolve ( templatesDir , 'plugin.ejs' ) ) ,
@@ -122,7 +126,6 @@ const VueFire: NuxtModule<VueFireNuxtModuleOptions> =
122
126
ssr : nuxt . options . ssr ,
123
127
} ,
124
128
} )
125
- addPlugin ( resolve ( runtimeDir , 'plugins/admin.server' ) )
126
129
addPlugin ( resolve ( runtimeDir , 'plugins/app' ) )
127
130
} )
128
131
} ,
Original file line number Diff line number Diff line change
1
+ import type { FirebaseApp } from '@firebase/app-types'
2
+ import { VueFireAuth } from 'vuefire'
3
+ import { defineNuxtPlugin } from '#app'
4
+
5
+ /**
6
+ * Initializes the app and provides it to others.
7
+ */
8
+
9
+ export default defineNuxtPlugin ( ( nuxtApp ) => {
10
+ const firebaseApp = nuxtApp . $firebaseApp as FirebaseApp
11
+
12
+ VueFireAuth ( ) ( firebaseApp , nuxtApp . vueApp )
13
+ } )
Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ export default defineNuxtPlugin((nuxtApp) => {
43
43
const modules = []
44
44
45
45
<% if (options .auth ) { % >
46
- // Auth
46
+ // modules.push(VueFireAuth())
47
47
< % } %>
48
48
49
49
<% if (options .appCheck ) { % >
You can’t perform that action at this time.
0 commit comments