feat: auth exceptions + roles with user object

This commit is contained in:
swve 2022-11-19 20:19:56 +01:00
parent 23c4224b2b
commit 143f21b70b
11 changed files with 74 additions and 68 deletions

View file

@ -37,7 +37,7 @@ export async function getUserInfo(token: string): Promise<any> {
credentials: "include",
};
return fetch(`${getAPIUrl()}users/profile`, requestOptions)
return fetch(`${getAPIUrl()}users/profile_metadata`, requestOptions)
.then((result) => result.json())
.catch((error) => console.log("error", error));
}