@asaleh37/ui-base 25.8.25 → 25.8.26

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@asaleh37/ui-base",
3
- "version": "25.8.25",
3
+ "version": "25.8.26",
4
4
  "description": "",
5
5
  "license": "ISC",
6
6
  "author": "Ahmed Saleh Mohamed",
@@ -104,11 +104,13 @@ const Login: React.FC = () => {
104
104
  const checkUserSession = async () => {
105
105
  if (appInfo?.apiBaseUrl) {
106
106
  if (userSession.isAuthenticated == null) {
107
+ const token = localStorage.getItem("TOKEN");
107
108
  try {
108
109
  let response = await axios.get(
109
110
  `${appInfo.apiBaseUrl}/api/auth/userInfo`,
110
111
  {
111
112
  withCredentials: true,
113
+ headers: { Authorization: `Bearer ${token}` },
112
114
  }
113
115
  );
114
116
  if (response != null && response.data != null) {