mirror of
https://github.com/bitwarden/browser
synced 2025-12-17 08:43:33 +00:00
rename LoginService to LoginComponentService to avoid confusion with the LoginStrategyService
This commit is contained in:
22
libs/auth/src/angular/login/login-component.service.ts
Normal file
22
libs/auth/src/angular/login/login-component.service.ts
Normal file
@@ -0,0 +1,22 @@
|
||||
import { UrlTree } from "@angular/router";
|
||||
|
||||
import { MasterPasswordPolicyOptions } from "@bitwarden/common/admin-console/models/domain/master-password-policy-options";
|
||||
import { Policy } from "@bitwarden/common/admin-console/models/domain/policy";
|
||||
|
||||
export interface PasswordPolicies {
|
||||
policies: Policy[];
|
||||
isPolicyAndAutoEnrollEnabled: boolean;
|
||||
enforcedPasswordPolicyOptions: MasterPasswordPolicyOptions;
|
||||
}
|
||||
|
||||
export abstract class LoginComponentService {
|
||||
// Web
|
||||
getOrgPolicies: () => Promise<PasswordPolicies | null>;
|
||||
setPreviousUrl: (route: UrlTree) => void | null;
|
||||
|
||||
// Web/Browser
|
||||
getShowPasswordlessFlag: () => boolean;
|
||||
|
||||
// Used on Browser and overriden on Desktop
|
||||
launchSsoBrowserWindow: (email: string, clientId: "browser" | "desktop") => Promise<void>;
|
||||
}
|
||||
Reference in New Issue
Block a user