wip avoid redirect while calling /me on the backend

This commit is contained in:
lebaudantoine
2026-09-04 14:13:15 +02:00
parent 071d2b4de7
commit b9ef6e6eb3
@@ -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