mirror of
https://github.com/bitwarden/browser
synced 2026-01-04 01:23:57 +00:00
* feat(notification-processing): [PM-19877] System Notification Implementation - Implemented auth request answering service. * test(notification-processing): [PM-19877] System Notification Implementation - Added tests.
18 lines
772 B
TypeScript
18 lines
772 B
TypeScript
import { SystemNotificationEvent } from "@bitwarden/common/platform/system-notifications/system-notifications.service";
|
|
import { UserId } from "@bitwarden/user-core";
|
|
|
|
import { AuthRequestAnsweringServiceAbstraction } from "../../abstractions/auth-request-answering/auth-request-answering.service.abstraction";
|
|
|
|
export class UnsupportedAuthRequestAnsweringService
|
|
implements AuthRequestAnsweringServiceAbstraction
|
|
{
|
|
constructor() {}
|
|
async handleAuthRequestNotificationClicked(event: SystemNotificationEvent): Promise<void> {
|
|
throw new Error("Received pending auth request not supported.");
|
|
}
|
|
|
|
async receivedPendingAuthRequest(userId: UserId, notificationId: string): Promise<void> {
|
|
throw new Error("Received pending auth request not supported.");
|
|
}
|
|
}
|