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: client_id:
import.meta.env.VITE_CLIENT_ID, import.meta.env.VITE_CLIENT_ID,
scope: "email profile openid", 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 => { callback: response => {
if (response.code) { if (response.code) {
this.sendCodeToBackend(response.code); this.sendCodeToBackend(response.code);
@ -151,7 +151,7 @@ export default {
const headers = { const headers = {
Authorization: code 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; const userDetails = response.data;
console.log("User Details:", userDetails); console.log("User Details:", userDetails);
this.userDetails = userDetails; this.userDetails = userDetails;
@ -190,4 +190,4 @@ export default {
justify-content: center; justify-content: center;
align-content: center; align-content: center;
} }
</style> </style>