@robot-resources/cli-core 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/auth.mjs +6 -1
- package/package.json +1 -1
package/auth.mjs
CHANGED
|
@@ -1,8 +1,13 @@
|
|
|
1
1
|
import { createHash, randomBytes } from 'node:crypto';
|
|
2
2
|
import { createServer } from 'node:http';
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
// Supabase anon key is a public client key (like Stripe's publishable key).
|
|
5
|
+
// Security is enforced by Row Level Security policies, not key secrecy.
|
|
6
|
+
// Override via env vars for alternative Supabase instances.
|
|
7
|
+
const SUPABASE_URL =
|
|
8
|
+
process.env.SUPABASE_URL || 'https://tbnliojrqmcagojtvqpe.supabase.co';
|
|
5
9
|
const SUPABASE_ANON_KEY =
|
|
10
|
+
process.env.SUPABASE_ANON_KEY ||
|
|
6
11
|
'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6InRibmxpb2pycW1jYWdvanR2cXBlIiwicm9sZSI6ImFub24iLCJpYXQiOjE3NzMyNjIxNzAsImV4cCI6MjA4ODgzODE3MH0.GKlpbVFgBbcV0OwxFZuOb-LfqtOu95ZiR33KNOONPI0';
|
|
7
12
|
|
|
8
13
|
const PREFERRED_PORT = 54321;
|