Repo for USER started

This commit is contained in:
sprechtl 2022-10-10 01:21:53 +02:00
parent 07e014cd8f
commit d66b9272b7
8 changed files with 146 additions and 86 deletions

View file

@ -0,0 +1,19 @@
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>;
}