fix: fix github verifier
This commit is contained in:
parent
25d64f8edd
commit
838ba63c89
@ -35,18 +35,19 @@ class AuthModule {
|
|||||||
service: 'handy',
|
service: 'handy',
|
||||||
publicKey: generator.publicKey
|
publicKey: generator.publicKey
|
||||||
});
|
});
|
||||||
|
|
||||||
const githubVerifier = await privacyKit.createEphemeralTokenVerifier({
|
|
||||||
service: 'github-happy',
|
|
||||||
publicKey: generator.publicKey,
|
|
||||||
});
|
|
||||||
|
|
||||||
const githubGenerator = await privacyKit.createEphemeralTokenGenerator({
|
const githubGenerator = await privacyKit.createEphemeralTokenGenerator({
|
||||||
service: 'github-happy',
|
service: 'github-happy',
|
||||||
seed: process.env.HANDY_MASTER_SECRET!,
|
seed: process.env.HANDY_MASTER_SECRET!,
|
||||||
ttl: 5 * 60 * 1000 // 5 minutes
|
ttl: 5 * 60 * 1000 // 5 minutes
|
||||||
});
|
});
|
||||||
|
|
||||||
|
const githubVerifier = await privacyKit.createEphemeralTokenVerifier({
|
||||||
|
service: 'github-happy',
|
||||||
|
publicKey: githubGenerator.publicKey,
|
||||||
|
});
|
||||||
|
|
||||||
|
|
||||||
this.tokens = { generator, verifier, githubVerifier, githubGenerator };
|
this.tokens = { generator, verifier, githubVerifier, githubGenerator };
|
||||||
|
|
||||||
log({ module: 'auth' }, 'Auth module initialized');
|
log({ module: 'auth' }, 'Auth module initialized');
|
||||||
|
Loading…
Reference in New Issue
Block a user