18 lines
631 B
TypeScript
18 lines
631 B
TypeScript
import { JwtService } from '@nestjs/jwt';
|
|
import { UsersService } from '../users/users.service';
|
|
import { User } from '../users/entities/user.entity';
|
|
export declare class AuthService {
|
|
private usersService;
|
|
private jwtService;
|
|
constructor(usersService: UsersService, jwtService: JwtService);
|
|
validateUser(username: string, password: string): Promise<User | null>;
|
|
login(username: string, password: string): Promise<{
|
|
access_token: string;
|
|
user: User;
|
|
}>;
|
|
register(username: string, email: string, password: string): Promise<{
|
|
access_token: string;
|
|
user: User;
|
|
}>;
|
|
}
|