1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-19 09:43:23 +00:00

abstract services

This commit is contained in:
Kyle Spearrin
2018-02-08 12:24:37 -05:00
parent 9cd74af2df
commit 28ed4144db
5 changed files with 20 additions and 19 deletions

View File

@@ -1,12 +1,13 @@
export interface UserService {
export abstract class UserService {
userId: string;
email: string;
stamp: string;
setUserIdAndEmail(userId: string, email: string): Promise<any>;
setSecurityStamp(stamp: string): Promise<any>;
getUserId(): Promise<string>;
getEmail(): Promise<string>;
getSecurityStamp(): Promise<string>;
clear(): Promise<any>;
isAuthenticated(): Promise<boolean>;
setUserIdAndEmail: (userId: string, email: string) => Promise<any>;
setSecurityStamp: (stamp: string) => Promise<any>;
getUserId: () => Promise<string>;
getEmail: () => Promise<string>;
getSecurityStamp: () => Promise<string>;
clear: () => Promise<any>;
isAuthenticated: () => Promise<boolean>;
}