Skip to content

Commit

Permalink
More debugging.
Browse files Browse the repository at this point in the history
  • Loading branch information
Carifio24 committed Oct 1, 2024
1 parent 0850ba4 commit 8fa4324
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/authorization.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ const HASHER = new SHA3(256);
const validKeys = new Map<string, APIKey>();

export function hashAPIKey(key: string): string {
console.log(key);
HASHER.reset();
HASHER.update(key);
const hashed = HASHER.digest("hex");
Expand Down
1 change: 1 addition & 0 deletions tests/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ export async function syncTables(force=false): Promise<void> {
export async function addAPIKey(): Promise<APIKey | void> {
// 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",
Expand Down

0 comments on commit 8fa4324

Please sign in to comment.