Skip to content

Commit

Permalink
Bug fixes🚀🧹
Browse files Browse the repository at this point in the history
  • Loading branch information
ashutosh7i committed Nov 14, 2023
1 parent ce13470 commit cf52ab2
Showing 1 changed file with 12 additions and 9 deletions.
21 changes: 12 additions & 9 deletions client/chakra-client/src/layouts/HomePage.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -304,15 +304,18 @@ export default function HomePage() {

useEffect(() => {
const getUser = () => {
fetch("http://localhost:5000/auth/login/success", {
method: "GET",
credentials: "include",
headers: {
Accept: "application/json",
"Content-Type": "application/json",
"Access-Control-Allow-Credentials": true,
},
})
fetch(
"https://soc.centralindia.cloudapp.azure.com/auth/login/success",
{
method: "GET",
credentials: "include",
headers: {
Accept: "application/json",
"Content-Type": "application/json",
"Access-Control-Allow-Credentials": true,
},
}
)
.then((response) => {
if (response.status === 200) return response.json();
throw new Error("authentication has been failed!");
Expand Down

0 comments on commit cf52ab2

Please sign in to comment.