You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// No credentials were provided, this will fail so we throw an explicit error
78
-
// TODO: add link to vuefire docs
79
-
log(
80
-
'warn',
81
-
`\
82
-
You must provide admin credentials during development. See https://firebase.google.com/docs/admin/setup#initialize-sdk for more information. It must be made available through GOOGLE_APPLICATION_CREDENTIALS env variable as a full resolved path or a JSON string.
83
-
You can also set the FIREBASE_CLIENT_EMAIL, FIREBASE_PRIVATE_KEY and FIREBASE_PROJECT_ID env variables. Note this environment variable is automatically set on Firebase Cloud Functions.\
84
-
`
85
-
)
86
-
thrownewError('admin-app/missing-credentials')
90
+
// automatically picks up the service account file path from the env variable
91
+
log('debug','using applicationDefault()')
92
+
credential=applicationDefault()
87
93
}
94
+
// No credentials were provided, this will fail so we throw an explicit error
95
+
// TODO: add link to vuefire docs
96
+
// log(
97
+
// 'warn',
98
+
// `\
99
+
// You must provide admin credentials during development. See https://firebase.google.com/docs/admin/setup#initialize-sdk for more information. It must be made available through GOOGLE_APPLICATION_CREDENTIALS env variable as a full resolved path or a JSON string.
100
+
// You can also set the FIREBASE_CLIENT_EMAIL, FIREBASE_PRIVATE_KEY and FIREBASE_PROJECT_ID env variables. Note this environment variable is automatically set on Firebase Cloud Functions.\
101
+
// `
102
+
// )
103
+
// throw new Error('admin-app/missing-credentials')
0 commit comments