mirror of
https://github.com/bitwarden/directory-connector
synced 2025-12-05 23:53:21 +00:00
* Unpackage-ify jslib * Adjust .tsconfig path for root and apply to jslib * Rebuild package-lock.json * Disable husky in CI * Revert an incorrect find/replace * Add jslib/shared/.eslintrc rules to root eslintrc * Revert package.json change to ignore spec files when linting * Ensure custom matcher gets imported in jslib tests * Fix small workflow bugs from merging * Try and get CI builds moving again * Always sign and notorize builds in CI * Revert erroneous verion bump
41 lines
910 B
TypeScript
41 lines
910 B
TypeScript
import {
|
|
TwoFactorProviderDetails,
|
|
TwoFactorService,
|
|
} from "@/jslib/common/src/abstractions/twoFactor.service";
|
|
import { TwoFactorProviderType } from "@/jslib/common/src/enums/twoFactorProviderType";
|
|
import { IdentityTwoFactorResponse } from "@/jslib/common/src/models/response/identityTwoFactorResponse";
|
|
|
|
export class NoopTwoFactorService implements TwoFactorService {
|
|
init() {
|
|
// Noop
|
|
}
|
|
|
|
getSupportedProviders(win: Window): TwoFactorProviderDetails[] {
|
|
return null;
|
|
}
|
|
|
|
getDefaultProvider(webAuthnSupported: boolean): TwoFactorProviderType {
|
|
return null;
|
|
}
|
|
|
|
setSelectedProvider(type: TwoFactorProviderType) {
|
|
// Noop
|
|
}
|
|
|
|
clearSelectedProvider() {
|
|
// Noop
|
|
}
|
|
|
|
setProviders(response: IdentityTwoFactorResponse) {
|
|
// Noop
|
|
}
|
|
|
|
clearProviders() {
|
|
// Noop
|
|
}
|
|
|
|
getProviders(): Map<TwoFactorProviderType, { [key: string]: string }> {
|
|
return null;
|
|
}
|
|
}
|