add the API key as a parameter

this is actually something which should be stored in an .ENV file.
This commit is contained in:
Andreas Zweili 2021-07-28 22:28:52 +02:00
parent 0e474ead4a
commit 87c386bbd4
1 changed files with 4 additions and 2 deletions

View File

@ -1,8 +1,10 @@
import axios from 'axios';
const getAPI = axios.create({
baseURL:
'https://identitytoolkit.googleapis.com/v1/accounts:signUp?key=AIzaSyDBrrv4iYvZkvC15i5Un3_maYKQhmJdXXo',
baseURL: 'https://identitytoolkit.googleapis.com/v1/',
params: {
key: 'AIzaSyDBrrv4iYvZkvC15i5Un3_maYKQhmJdXXo'
},
timeout: 1000
});