refactor(nestjs): authentication

This commit is contained in:
Ahmed Bouhuolia
2025-04-02 15:50:00 +02:00
parent f11b09cd87
commit 18017d25d5
25 changed files with 1650 additions and 30 deletions

View File

@@ -7,6 +7,7 @@ import { AuthSigninDto } from './dtos/AuthSignin.dto';
import { AuthSignupDto } from './dtos/AuthSignup.dto';
import { AuthSendResetPasswordService } from './commands/AuthSendResetPassword.service';
import { AuthResetPasswordService } from './commands/AuthResetPassword.service';
import { GetAuthMetaService } from './queries/GetAuthMeta.service';
@Injectable()
export class AuthenticationApplication {
@@ -17,7 +18,7 @@ export class AuthenticationApplication {
private readonly authSignUpConfirmResendService: AuthSignupConfirmResendService,
private readonly authResetPasswordService: AuthResetPasswordService,
private readonly authSendResetPasswordService: AuthSendResetPasswordService,
// private readonly authGetMeta: GetAuthMeta,
private readonly authGetMeta: GetAuthMetaService,
) {}
/**
@@ -81,6 +82,6 @@ export class AuthenticationApplication {
* @returns {Promise<IAuthGetMetaPOJO>}
*/
public async getAuthMeta() {
// return this.authGetMeta.getAuthMeta();
return this.authGetMeta.getAuthMeta();
}
}