added more support for supabase-js

This commit is contained in:
2026-03-12 10:18:52 +02:00
parent c0792f2e1d
commit 6708cf28a7
62 changed files with 6563 additions and 526 deletions

View File

@@ -0,0 +1,13 @@
import { describe, it } from 'vitest';
import jwt from 'jsonwebtoken';
describe('Generate Keys', () => {
it('should generate keys', () => {
const secret = 'testsecret';
const anon = jwt.sign({ role: 'anon', iss: 'madbase' }, secret, { algorithm: 'HS256' });
const service = jwt.sign({ role: 'service_role', iss: 'madbase' }, secret, { algorithm: 'HS256' });
console.log(`ANON_KEY=${anon}`);
console.log(`SERVICE_KEY=${service}`);
});
});