mirror of
https://github.com/bitwarden/browser
synced 2025-12-19 09:43:23 +00:00
abstract services
This commit is contained in:
@@ -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>;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user