mirror of
https://github.com/suitenumerique/meet.git
synced 2026-09-06 07:29:04 +00:00
wip avoid redirect while calling /me on the backend
This commit is contained in:
@@ -18,7 +18,7 @@ export const fetchUser = (
|
||||
}
|
||||
): Promise<ApiUser | false> => {
|
||||
return new Promise((resolve, reject) => {
|
||||
fetchApi<ApiUser>('/users/me')
|
||||
fetchApi<ApiUser>('/users/me/')
|
||||
.then(resolve)
|
||||
.catch((error) => {
|
||||
// we assume that a 401 means the user is not logged in
|
||||
|
||||
Reference in New Issue
Block a user