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