mirror of
https://github.com/bitwarden/browser
synced 2026-01-08 03:23:50 +00:00
convert user service to jslib
This commit is contained in:
@@ -5,4 +5,5 @@ export { MessagingService } from './messaging.service';
|
||||
export { PlatformUtilsService } from './platformUtils.service';
|
||||
export { StorageService } from './storage.service';
|
||||
export { TokenService } from './token.service';
|
||||
export { UserService } from './user.service';
|
||||
export { UtilsService } from './utils.service';
|
||||
|
||||
12
src/abstractions/user.service.ts
Normal file
12
src/abstractions/user.service.ts
Normal file
@@ -0,0 +1,12 @@
|
||||
export interface 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>;
|
||||
}
|
||||
Reference in New Issue
Block a user