prep for live mocks

This commit is contained in:
Matt Hill
2021-06-14 17:02:26 -06:00
committed by Aiden McClelland
parent 21dd8fa618
commit c5f2379c6e
11 changed files with 69 additions and 101 deletions

View File

@@ -38,12 +38,8 @@ export class AuthService {
return this.authState$.pipe(distinctUntilChanged())
}
async submitPin (pin: string): Promise<void> {
await this.api.submitPin({ pin })
}
async submitPassword (password: string): Promise<void> {
await this.api.submitPassword({ password })
async login (password: string): Promise<void> {
await this.api.login({ password })
await this.storage.set(StorageKeys.LOGGED_IN_KEY, true)
this.authState$.next(AuthState.VERIFIED)
}