Remove getPermissions to fix redirect loop (#516)

This commit is contained in:
Borislav Pantaleev 2025-04-26 08:22:51 +03:00 committed by GitHub
parent 64f9d8b48c
commit 2752716497
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -189,9 +189,7 @@ const authProvider: AuthProvider = {
checkAuth: () => {
const access_token = localStorage.getItem("access_token");
return typeof access_token === "string" ? Promise.resolve() : Promise.reject();
},
// called when the user navigates to a new location, to check for permissions / roles
getPermissions: () => Promise.resolve(),
}
};
export default authProvider;