From 28be0bbd4d3b1c7e5bc13b3ee8daeac1787cb816 Mon Sep 17 00:00:00 2001 From: Pagan Gazzard Date: Fri, 18 Oct 2024 15:58:57 +0100 Subject: [PATCH] Expose `checkApiKey` to allow resolving an api key string This allows for custom api key handlers that don't rely on `resolveAuthHeader` or `resolveApiKey` Change-type: minor --- src/sbvr-api/permissions.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sbvr-api/permissions.ts b/src/sbvr-api/permissions.ts index 4c13a1bc3..61615d0bc 100644 --- a/src/sbvr-api/permissions.ts +++ b/src/sbvr-api/permissions.ts @@ -1536,7 +1536,7 @@ const getApiKeyActorId = (() => { ); })(); -const checkApiKey = async ( +export const checkApiKey = async ( apiKey: string, tx?: Tx, ): Promise => {