InterfaceSDK v0.3.0

WebPushAdapterOptions

import type { WebPushAdapterOptions } from '@usepapier/client/base';

Declaration #

web-push.adapter.tsTypeScript
export interface WebPushAdapterOptions {
    vapid: {
        subject: string;
        publicKey: string;
        privateKey: string;
    };
    timeoutMs?: number;
    allowedOrigins?: string[];
}

Source: packages/client/src/adapters/web-push.adapter.ts:10

Members 3

vapid: {
    subject: string;
    publicKey: string;
    privateKey: string;
};

packages/client/src/adapters/web-push.adapter.ts:11

timeoutMs

Optional
timeoutMs?: number;

packages/client/src/adapters/web-push.adapter.ts:12

Exact HTTPS origins only. Defaults to FCM, Mozilla and Apple's browser push services.

allowedOrigins?: string[];

packages/client/src/adapters/web-push.adapter.ts:14

Generated from TypeScript source.b1e9ee529902