diff options
Diffstat (limited to 'packages/auth-apikey/src/extension.ts')
| -rw-r--r-- | packages/auth-apikey/src/extension.ts | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/packages/auth-apikey/src/extension.ts b/packages/auth-apikey/src/extension.ts index 05d6462..ee68b60 100644 --- a/packages/auth-apikey/src/extension.ts +++ b/packages/auth-apikey/src/extension.ts @@ -2,21 +2,21 @@ import type { AuthContract, Extension } from "@dispatch/kernel"; import { resolveApiKeyCredentials } from "./resolver.js"; export const apikeyAuth: AuthContract = { - id: "apikey", - resolve: async () => - resolveApiKeyCredentials(process.env as Readonly<Record<string, string | undefined>>), + id: "apikey", + resolve: async () => + resolveApiKeyCredentials(process.env as Readonly<Record<string, string | undefined>>), }; export const extension: Extension = { - manifest: { - id: "auth-apikey", - name: "API Key Auth", - version: "0.0.0", - apiVersion: "^0.1.0", - trust: "bundled", - contributes: { auth: ["apikey"] }, - }, - activate(host) { - host.defineAuth(apikeyAuth); - }, + manifest: { + id: "auth-apikey", + name: "API Key Auth", + version: "0.0.0", + apiVersion: "^0.1.0", + trust: "bundled", + contributes: { auth: ["apikey"] }, + }, + activate(host) { + host.defineAuth(apikeyAuth); + }, }; |
