18 lines
476 B
TypeScript
18 lines
476 B
TypeScript
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) {
|
|
const loginResponse = await this.authService.login(data, true, {
|
|
id: data.device_id,
|
|
name: data.device_name,
|
|
})
|
|
|
|
return loginResponse
|
|
}
|
|
}
|