feat(frontend/auth): Added way to automatically fetch providers

This allows the frontend to list all available providers without
hardcoding them in.
This commit is contained in:
Maieul BOYER 2025-11-13 16:53:24 +01:00 committed by Maix0
parent 9ce9fa44e4
commit 6d630fee92
22 changed files with 1448 additions and 221 deletions

View file

@ -3,15 +3,16 @@ export * from './generated'
const basePath = (() => {
let u = new URL(location.href);
u.pathname = "";
u.hash = "";
u.search = "";
return u.toString().replace(/\/+$/, '');
let u = new URL(location.href);
u.pathname = "";
u.hash = "";
u.search = "";
return u.toString().replace(/\/+$/, '');
})();
export const client = new OpenapiOtherApi(new Configuration({ basePath }));
export default client;
Object.assign(window as any, { apiClient: client });