From 577096da04d4764232ab2641962d4fe5cf24464a Mon Sep 17 00:00:00 2001 From: Louis Gustavo Date: Fri, 23 Feb 2024 15:38:37 +0700 Subject: [PATCH] update --- .env | 1 + src/store/modules/auth.js | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) create mode 100644 .env diff --git a/.env b/.env new file mode 100644 index 0000000..d036c84 --- /dev/null +++ b/.env @@ -0,0 +1 @@ +VUE_APP_FIREBASE_API_KEY= \ No newline at end of file diff --git a/src/store/modules/auth.js b/src/store/modules/auth.js index 1261538..65cfb64 100644 --- a/src/store/modules/auth.js +++ b/src/store/modules/auth.js @@ -49,7 +49,7 @@ export default { }, async signUp({ dispatch }, payload) { return dispatch('authenticate', { - url: 'https://identitytoolkit.googleapis.com/v1/accounts:signUp?key=AIzaSyACQAI-_kCK4ibJHYgnBYa5v_kAmpLsR9U', + url: `https://identitytoolkit.googleapis.com/v1/accounts:signUp?key=${process.env.VUE_APP_FIREBASE_API_KEY}`, credentials: { ...payload, }, @@ -57,7 +57,7 @@ export default { }, async login({ dispatch }, payload) { return dispatch('authenticate', { - url: 'https://identitytoolkit.googleapis.com/v1/accounts:signInWithPassword?key=AIzaSyACQAI-_kCK4ibJHYgnBYa5v_kAmpLsR9U', + url: `https://identitytoolkit.googleapis.com/v1/accounts:signInWithPassword?key=${process.env.VUE_APP_FIREBASE_API_KEY}`, credentials: { ...payload, },