mirror of
https://github.com/bitwarden/browser
synced 2025-12-19 09:43:23 +00:00
* introduced forwarder integrations * simply contexts * report error and message when both are present in an RPC response
13 lines
506 B
TypeScript
13 lines
506 B
TypeScript
import { IntegrationContext } from "./integration-context";
|
|
import { IntegrationMetadata } from "./integration-metadata";
|
|
import { ApiSettings, IntegrationRequest, TokenHeader } from "./rpc";
|
|
|
|
/** Configures integration-wide settings */
|
|
export type IntegrationConfiguration = IntegrationMetadata & {
|
|
/** Creates the authentication header for all integration remote procedure calls */
|
|
authenticate: (
|
|
request: IntegrationRequest,
|
|
context: IntegrationContext<ApiSettings>,
|
|
) => TokenHeader;
|
|
};
|