feat: enhance authentication flow with device info and optional POS flag in login DTO
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
import { LoginDto } from '@/modules/auth/dto/login.dto'
|
||||
|
||||
export class applicationLoginDto extends LoginDto {}
|
||||
export class applicationLoginDto extends LoginDto {
|
||||
device_name: string
|
||||
device_id: string
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user