fix: fix github verifier

This commit is contained in:
Steve Korshakov 2025-08-26 21:03:31 -07:00
parent 25d64f8edd
commit 838ba63c89

View File

@ -35,18 +35,19 @@ class AuthModule {
service: 'handy',
publicKey: generator.publicKey
});
const githubVerifier = await privacyKit.createEphemeralTokenVerifier({
service: 'github-happy',
publicKey: generator.publicKey,
});
const githubGenerator = await privacyKit.createEphemeralTokenGenerator({
service: 'github-happy',
seed: process.env.HANDY_MASTER_SECRET!,
ttl: 5 * 60 * 1000 // 5 minutes
});
const githubVerifier = await privacyKit.createEphemeralTokenVerifier({
service: 'github-happy',
publicKey: githubGenerator.publicKey,
});
this.tokens = { generator, verifier, githubVerifier, githubGenerator };
log({ module: 'auth' }, 'Auth module initialized');