Skip to content

Commit

Permalink
chore: add more logs
Browse files Browse the repository at this point in the history
  • Loading branch information
hhio618 committed Sep 29, 2024
1 parent d68a537 commit c4d32f7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 11 deletions.
16 changes: 5 additions & 11 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,6 @@
const crypto = require("crypto");
import { createClient } from "@supabase/supabase-js";

// Generate an X25519 key pair
const { privateKey } = crypto.generateKeyPairSync("x25519");

// Export the private key as a raw Buffer
const privateKeyBuffer = privateKey.export({ type: "pkcs8", format: "der" });

// Convert the Buffer to a hexadecimal string
const privateKeyHex = privateKeyBuffer.toString("hex");

console.log("X25519 Private Key (Hex):", privateKeyHex);
const supabaseUrl = "https://uorkbrlsegsfjspkluwj.supabase.co";
const supabaseKey = process.env.SUPABASE_KEY;
const supabase = createClient(supabaseUrl, supabaseKey);
console.log(supabase);
1 change: 1 addition & 0 deletions scripts/github-action-permit-generator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ export async function generatePermitsFromGithubWorkflowDispatch() {
console.log(`Recieved: ${_userAmounts}`);
const userAmounts = JSON.parse(_userAmounts);

console.log(`Recieved env: ${env}`);
// Populate the permitRequests from the user_amounts payload

const permitRequests: PermitRequest[] = userAmounts.flatMap((userObj: { [key: string]: number }) =>
Expand Down

0 comments on commit c4d32f7

Please sign in to comment.