homepage-plus
Some checks failed
Docker CI / Linting Checks (push) Has been cancelled
Docker CI / Docker Build & Push (push) Has been cancelled

This commit is contained in:
Dominik 2024-12-12 15:15:24 +01:00
parent 2376184b14
commit 1370cd195a
16 changed files with 265 additions and 51 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;