mirror of
https://github.com/Drop-OSS/drop
synced 2026-08-27 14:23:05 -04:00
fix: eslint error and server plugin name
This commit is contained in:
parent
1f510bee57
commit
30b065dde3
2 changed files with 3 additions and 2 deletions
|
|
@ -9,7 +9,7 @@ export const enabledAuthManagers: {
|
|||
};
|
||||
|
||||
const initFunctions: {
|
||||
[K in keyof typeof enabledAuthManagers]: () => Promise<any>;
|
||||
[K in keyof typeof enabledAuthManagers]: () => Promise<unknown>;
|
||||
} = {
|
||||
oidc: OIDCManager.prototype.create,
|
||||
simple: async () => {
|
||||
|
|
@ -18,11 +18,12 @@ const initFunctions: {
|
|||
},
|
||||
};
|
||||
|
||||
export default defineNitroPlugin(async (nitro) => {
|
||||
export default defineNitroPlugin(async (_nitro) => {
|
||||
for (const [key, init] of Object.entries(initFunctions)) {
|
||||
try {
|
||||
const object = await init();
|
||||
if (!object) break;
|
||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||
(enabledAuthManagers as any)[key] = object;
|
||||
console.log(`enabled auth: ${key}`);
|
||||
} catch (e) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue