2026-04-22 21:55:40 +03:30
|
|
|
import { AuthService } from '@/modules/auth/auth.service'
|
|
|
|
|
import { Injectable } from '@nestjs/common'
|
|
|
|
|
import { applicationLoginDto } from './dto/auth.dto'
|
|
|
|
|
|
|
|
|
|
@Injectable()
|
|
|
|
|
export class ApplicationAuthService {
|
|
|
|
|
constructor(private readonly authService: AuthService) {}
|
|
|
|
|
|
|
|
|
|
async login(data: applicationLoginDto) {
|
2026-05-11 19:09:04 +03:30
|
|
|
const loginResponse = await this.authService.login(data, true, {
|
|
|
|
|
id: data.device_id,
|
|
|
|
|
name: data.device_name,
|
|
|
|
|
})
|
2026-04-22 21:55:40 +03:30
|
|
|
|
|
|
|
|
return loginResponse
|
|
|
|
|
}
|
|
|
|
|
}
|