configuration/src/config/auth.config.ts

11 lines
278 B
TypeScript
Raw Normal View History

2023-11-10 15:17:08 +00:00
import { registerAs } from '@nestjs/config';
import { Config } from './config';
export interface AuthConfig extends Config {
encryptionAlgorithm: string;
}
export default registerAs('match', () => ({
encryptionAlgorithm: process.env.ENCRYPTION_ALGORITHM ?? 'BCRYPT',
}));