@types/openid
TypeScript icon, indicating that this package has built-in type declarations

2.0.5 • Public • Published

Installation

npm install --save @types/openid

Summary

This package contains type definitions for openid (https://github.com/havard/node-openid).

Details

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

index.d.ts

export interface OpenIdError {
    message: string;
}

export class RelyingParty {
    constructor(
        returnUrl: string,
        realm: string | null,
        stateless: boolean,
        strict: boolean,
        extensions: readonly any[],
    );

    authenticate(
        identifier: string,
        immediate: boolean,
        callback: (err: OpenIdError | null, authUrl: string | null) => void,
    ): void;

    verifyAssertion(
        requestOrUrl: object | string,
        callback: (
            err: OpenIdError | null,
            result?: { authenticated: boolean; claimedIdentifier?: string | undefined },
        ) => void,
    ): void;
}

Additional Details

  • Last updated: Tue, 07 Nov 2023 09:09:39 GMT
  • Dependencies: none

Credits

These definitions were written by Jacob Stein, and Joao Dias.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/openid

Weekly Downloads

905

Version

2.0.5

License

MIT

Unpacked Size

4.03 kB

Total Files

5

Last publish

Collaborators

  • types