feat: enhance authentication flow with device info and optional POS flag in login DTO

This commit is contained in:
2026-05-11 19:09:04 +03:30
parent 5e6bd33cdd
commit 2a4e778c31
5 changed files with 125 additions and 30 deletions
+4 -1
View File
@@ -7,7 +7,10 @@ export class ApplicationAuthService {
constructor(private readonly authService: AuthService) {}
async login(data: applicationLoginDto) {
const loginResponse = await this.authService.login(data, true)
const loginResponse = await this.authService.login(data, true, {
id: data.device_id,
name: data.device_name,
})
return loginResponse
}