direct login
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
import { ConfigService } from "@nestjs/config";
|
||||
|
||||
export function dpageConfig() {
|
||||
return {
|
||||
inject: [ConfigService],
|
||||
useFactory: async (configService: ConfigService) => {
|
||||
return {
|
||||
baseUrl: configService.get<string>("DPAGE_BACKEND_URL")??'https://dpage-api.danakcorp.com',
|
||||
username: configService.get<string>("DPAGE_USERNAME")??'danak@dsc.com',
|
||||
password: configService.get<string>("DPAGE_PASSWORD")??'DsCdAnAk?@ABC',
|
||||
};
|
||||
},
|
||||
};
|
||||
}
|
||||
|
||||
export interface IDPageConfig {
|
||||
baseUrl: string;
|
||||
username: string;
|
||||
password: string;
|
||||
}
|
||||
Reference in New Issue
Block a user