homepage-plus

This commit is contained in:
Dominik 2024-12-12 15:15:24 +01:00 committed by Dominik Stahl
parent 2ee5fd123b
commit e2387f6b65
Signed by: dominik
GPG key ID: 06A4003FC5049644
15 changed files with 271 additions and 56 deletions

View file

@ -0,0 +1,21 @@
const NullIdentity = { user: null, groups: [] };
function createNullIdentity() {
return {
getIdentity: () => NullIdentity,
getContext: () => ({
provider: "null",
}),
};
}
async function fetchNullIdentity([key]) {
return fetch(key).then((res) => res.json());
}
const NullIdentityProvider = {
create: createNullIdentity,
fetch: fetchNullIdentity,
};
export default NullIdentityProvider;