diff --git a/application/Auth.ts b/application/Auth.ts new file mode 100644 index 0000000..8cfaf2c --- /dev/null +++ b/application/Auth.ts @@ -0,0 +1,19 @@ +export interface SignInRequest { + email: string; + password: string; +} + +export interface SignInResponse { + succeed: boolean; + error?: string; +} + +export interface SignUpRequest { + email: string; + password: string; +} + +export interface SignUpResponse { + succeed: boolean; + error?: string; +} diff --git a/infrastructure/index.ts b/infrastructure/index.ts index c5d222f..2c8d38c 100644 --- a/infrastructure/index.ts +++ b/infrastructure/index.ts @@ -27,4 +27,7 @@ export interface IAccountRepository { setLastLoginAttempt(timestamp: number): Promise; setLastLogin(timestamp: number): Promise; registerNewUser(user: User): Promise; + upgradeUserToPlayer(user: User, player: Player): Promise; + unregisterUser(id: Identifier): Promise; + unregisterPlayer(id: Identifier): Promise; }