diff --git a/src/authorization.ts b/src/authorization.ts index 55363f3..398694c 100644 --- a/src/authorization.ts +++ b/src/authorization.ts @@ -7,6 +7,7 @@ const HASHER = new SHA3(256); const validKeys = new Map(); export function hashAPIKey(key: string): string { + console.log(key); HASHER.reset(); HASHER.update(key); const hashed = HASHER.digest("hex"); diff --git a/tests/utils.ts b/tests/utils.ts index 424d55a..66fc7f5 100644 --- a/tests/utils.ts +++ b/tests/utils.ts @@ -74,6 +74,7 @@ export async function syncTables(force=false): Promise { export async function addAPIKey(): Promise { // Set up some basic data that we're going to want const hashedKey = hashAPIKey(process.env.CDS_API_KEY as string); + console.log(hashedKey); const apiKey = await APIKey.create({ hashed_key: hashedKey, client: "Tests",