PomeloNote/frontend/svelte/src/models/repos/user/UserRepository.ts
2022-10-10 01:21:53 +02:00

19 lines
No EOL
492 B
TypeScript

import type {Authentication} from "../../authentication";
export interface UserRepository {
/**
* Registers a new user.
* @param email
* @param username
* @param password
*/
registerUser(email: string, username: string, password: string): Promise<Authentication>;
/**
* Gets the current user.
* @param jwt
*/
getMe(jwt: string): Promise<Authentication>;
loginUser(identifier: string, password: string): Promise<Authentication>;
}