UNPKG

@bitloops/bl-boilerplate-infra-nest-auth-passport

Version:
16 lines 647 B
import { JwtService } from '@nestjs/jwt'; import { Application, Either } from '@bitloops/bl-boilerplate-core'; import { UsersService } from './users/users.service'; import { User } from './users/user.model'; export declare class AuthService { private usersService; private jwtService; constructor(usersService: UsersService, jwtService: JwtService); validateUser(email: string, pass: string): Promise<any>; login(user: User): Promise<{ access_token: string; }>; register(user: User): Promise<Either<void, Application.Repo.Errors.Conflict>>; private hashPassword; } //# sourceMappingURL=auth.service.d.ts.map