From 7a25ec1953ff2470d10715a15e95837801807f9d Mon Sep 17 00:00:00 2001 From: Hariom Vashista Date: Mon, 9 Dec 2024 16:22:54 +0530 Subject: [PATCH] Updated the deprecatd API endpoint from /users/self to /users?profile=true --- js/login.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/login.js b/js/login.js index d5e072b..68d6b04 100644 --- a/js/login.js +++ b/js/login.js @@ -37,7 +37,7 @@ const hideSkeleton = () => { }; const fetchData = () => { - fetch('https://api.realdevsquad.com/users/self', { + fetch('https://api.realdevsquad.com/users?profile=true', { headers: { 'content-type': 'application/json' }, credentials: 'include', })