1
0
mirror of https://github.com/bitwarden/browser synced 2026-01-01 08:03:20 +00:00

lib updates for login view on desktop

This commit is contained in:
Kyle Spearrin
2018-01-24 23:27:04 -05:00
parent b4257b9ff3
commit e5c1adedff
6 changed files with 47 additions and 27 deletions

View File

@@ -2,7 +2,7 @@ import { ConstantsService } from './constants.service';
import { UtilsService } from './utils.service';
import { StorageService } from '../abstractions/storage.service';
import { TokenService as TokenServiceInterface } from '../abstractions/token.service';
import { TokenService as TokenServiceAbstraction } from '../abstractions/token.service';
const Keys = {
accessToken: 'accessToken',
@@ -10,7 +10,7 @@ const Keys = {
twoFactorTokenPrefix: 'twoFactorToken_',
};
export class TokenService implements TokenServiceInterface {
export class TokenService implements TokenServiceAbstraction {
token: string;
decodedToken: any;
refreshToken: string;

View File

@@ -1,7 +1,7 @@
import { ConstantsService } from './constants.service';
import { StorageService } from '../abstractions/storage.service';
import { TotpService as TotpServiceInterface } from '../abstractions/totp.service';
import { TotpService as TotpServiceAbstraction } from '../abstractions/totp.service';
const b32Chars = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ234567';
@@ -10,7 +10,7 @@ const TotpAlgorithm = {
hash: { name: 'SHA-1' },
};
export class TotpService implements TotpServiceInterface {
export class TotpService implements TotpServiceAbstraction {
constructor(private storageService: StorageService) {
}