mirror of
https://github.com/rzmk/learnhouse.git
synced 2025-12-19 04:19:25 +00:00
feat: auth exceptions + roles with user object
This commit is contained in:
parent
23c4224b2b
commit
143f21b70b
11 changed files with 74 additions and 68 deletions
|
|
@ -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));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue