2.7.4 • Published 3 months ago

@types/duo_web_sdk v2.7.4

Weekly downloads
182
License
MIT
Repository
github
Last release
3 months ago

Installation

npm install --save @types/duo_web_sdk

Summary

This package contains type definitions for duo_web_sdk-browser (https://github.com/duosecurity/duo_web_sdk).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/duo_web_sdk.

index.d.ts

// Type definitions for non-npm package duo_web_sdk-browser 2.7
// Project: https://github.com/duosecurity/duo_web_sdk
// Definitions by: Low Heok Hong <https://github.com/lhhong>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

export as namespace Duo;

export interface InitOptions {
    host: string;
    sig_request: string;
    iframe?: string | HTMLIFrameElement | undefined;
    iframeContainer?: string | HTMLElement | undefined;
    iframeAttributes?: object | undefined;
    post_action?: string | undefined;
    post_argument?: string | undefined;
    submit_callback?: ((duo_form: HTMLFormElement) => void) | undefined;
}

export interface ParsedSig {
    sigRequest: string;
    duoSig: string;
    appSig: string;
}

export function init(options: InitOptions): void;

export function _onReady(callback: () => void): void;
export function _parseSigRequest(sig: string): ParsedSig;
export function _isDuoMessage(event: MessageEvent): boolean;
export function _doPostBack(response: string): void;

Additional Details

  • Last updated: Thu, 08 Jul 2021 09:08:58 GMT
  • Dependencies: none
  • Global values: Duo

Credits

These definitions were written by Low Heok Hong.

2.7.4

3 months ago

2.7.2

7 months ago

2.7.3

6 months ago

2.7.1

3 years ago

2.7.0

4 years ago