Skip to content

Instantly share code, notes, and snippets.

View fadlee's full-sized avatar

Fadlul Alim fadlee

  • Indonesia
  • 00:38 (UTC +07:00)
View GitHub Profile
@fadlee
fadlee / setup-convex-auth-env.js
Last active September 4, 2025 15:25
Configure private and public key for Convex Auth, submit directly to Convex backend configured in .env.local
// run this using: curl -s https://rawurl... | node
import { generateKeyPair, createPublicKey } from 'crypto';
import { readFile } from 'fs/promises';
import { promisify } from 'util';
import path from 'path';
import { fileURLToPath } from 'url';
import https from 'https';
import http from 'http';
// Get the directory of the current module