import { Injectable } from '@nestjs/common' ; import { EnvService } from '../env/env.service' ; @ Injectable ( ) export class AuthService { constructor ( private readonly env ) { } public async validateUser ( email , password ) { if ( email !== this . env . get ( 'APP_ADMIN_EMAIL' ) || password !== this . env . get ( 'APP_ADMIN_PASSWORD' ) ) { return null ; } return { email } ; } }