File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ export default defineNuxtModule<ModuleOptions>({
4040 )
4141
4242 if ( isEmpty ( nuxt . options . runtimeConfig . public . googleSignIn . clientId ) ) {
43- useLogger ( MODULE_NAME ) . error (
43+ useLogger ( MODULE_NAME ) . warn (
4444 'provide googleSignIn.clientId in appConfig' ,
4545 )
4646 }
Original file line number Diff line number Diff line change @@ -4,6 +4,12 @@ export default defineNuxtPlugin(async (nuxtApp) => {
44 const { googleSignIn } = useRuntimeConfig ( ) . public
55 if ( googleSignIn ) {
66 const plugin = await import ( 'vue3-google-signin' )
7+
8+ if ( ! googleSignIn . clientId ) {
9+ console . warn ( '[vue3-google-signin] googleSignIn.clientId is not provided in appConfig' )
10+ return
11+ }
12+
713 nuxtApp . vueApp . use ( plugin . default , { clientId : googleSignIn . clientId } )
814 }
915} )
You can’t perform that action at this time.
0 commit comments