Change from localhost to actual LL backend

This commit is contained in:
Late Night Defender 2023-11-19 04:01:06 +07:00
parent 419d6d9813
commit 9cff6bd7ec

View file

@ -136,7 +136,7 @@ export default {
client_id:
import.meta.env.VITE_CLIENT_ID,
scope: "email profile openid",
redirect_uri: "http://localhost:5000/api/users/googleAuth/callback",
redirect_uri: "https://little-lines-backend.techtransthai.org/api/users/googleAuth/callback",
callback: response => {
if (response.code) {
this.sendCodeToBackend(response.code);
@ -151,7 +151,7 @@ export default {
const headers = {
Authorization: code
};
const response = await axios.post("http://localhost:5000/api/users/googleAuth", null, { headers });
const response = await axios.post("https://little-lines-backend.techtransthai.org/api/users/googleAuth", null, { headers });
const userDetails = response.data;
console.log("User Details:", userDetails);
this.userDetails = userDetails;