Skip to content
This repository has been archived by the owner on Feb 23, 2024. It is now read-only.

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
Louis Gustavo committed Feb 23, 2024
1 parent b555557 commit 577096d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions .env
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
VUE_APP_FIREBASE_API_KEY=
4 changes: 2 additions & 2 deletions src/store/modules/auth.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,15 +49,15 @@ 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,
},
});
},
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,
},
Expand Down

0 comments on commit 577096d

Please sign in to comment.