INNER CODE UNIT · TypeScript
SecretGenerator
andrechristikan/ack-nestjs-boilerplate · scripts/generate-secret.ts:48
class SecretGenerator {
private readonly keyDir: string;
private readonly accessJwksOutputPath: string;
private readonly refreshJwksOutputPath: string;
private readonly accessTokenPrivateKeyPath: string;
private readonly accessTokenPublicKeyPath: string;
private readonly refreshTokenPrivateKeyPath: string;
private readonly refreshTokenPublicKeyPath: string;
private readonly encryptionSecretPath: string;
constructor(keyDir: string) {
this.keyDir = keyDir;
this.accessTokenPrivateKeyPath = path.join(
this.keyDir,
'access-token.pem'
);
this.accessTokenPublicKeyPath = path.join(
this.keyDir,