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

1.0.4 • 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.

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 | number;
        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: Thu, 14 Nov 2024 03:36:28 GMT
  • Dependencies: none

Credits

These definitions were written by Arnav Gupta.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/discourse-sso

Weekly Downloads

481

Version

1.0.4

License

MIT

Unpacked Size

3.98 kB

Total Files

5

Last publish

Collaborators

  • types