15 lines
454 B
TypeScript
15 lines
454 B
TypeScript
import { AuthService } from './auth.service';
|
|
import { User } from '../users/entities/user.entity';
|
|
export declare class AuthResolver {
|
|
private authService;
|
|
constructor(authService: AuthService);
|
|
login(username: string, password: string): Promise<{
|
|
access_token: string;
|
|
user: User;
|
|
}>;
|
|
register(username: string, email: string, password: string): Promise<{
|
|
access_token: string;
|
|
user: User;
|
|
}>;
|
|
}
|