2.0.5 • Published 6 months ago

@types/openid v2.0.5

Weekly downloads
466
License
MIT
Repository
github
Last release
6 months ago

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

// Type definitions for openid 2.0
// Project: https://github.com/havard/node-openid
// Definitions by: Jacob Stein <https://github.com/jacobmstein>
//                 Joao Dias <https://github.com/alfaproject>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 3.4

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: Thu, 08 Jul 2021 20:19:01 GMT
  • Dependencies: none
  • Global values: none

Credits

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

2.0.3

8 months ago

2.0.5

6 months ago

2.0.4

7 months ago

2.0.2

3 years ago

2.0.1

5 years ago

2.0.0

5 years ago