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

1.0.3 • Public • Published

Installation

npm install --save @types/discourse-sso

Summary

This package contains type definitions for discourse-sso (https://github.com/ArmedGuy/discourse_sso_node).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/discourse-sso.

index.d.ts

declare class DiscourseSSO {
    constructor(ssoSecret: string);
    validate(payload: string, sig: string): boolean;
    getNonce(payload: string): string;
    buildLoginString(params: DiscourseSSO.UserParams): string;
}

declare namespace DiscourseSSO {
    interface UserParams {
        nonce: string;
        external_id: string;
        email: string;
        admin?: boolean | undefined;
        moderator?: boolean | undefined;
        username?: string | undefined;
        name?: string | undefined;
        avatar_url?: string | undefined;
        add_groups?: string[] | undefined;
        remove_groups?: string[] | undefined;
    }
}
export = DiscourseSSO;

Additional Details

  • Last updated: Mon, 06 Nov 2023 22:41:05 GMT
  • Dependencies: none

Credits

These definitions were written by Arnav Gupta.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/discourse-sso

Weekly Downloads

307

Version

1.0.3

License

MIT

Unpacked Size

3.94 kB

Total Files

5

Last publish

Collaborators

  • types