homepage-plus

This commit is contained in:
Dominik 2024-12-12 15:15:24 +01:00 committed by Dominik Stahl
parent 6fbe080b28
commit 984674686f
Signed by: dominik
GPG key ID: 06A4003FC5049644
16 changed files with 262 additions and 52 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;