Nightclub Party Music

    oauth-dyn-reg
    TypeScript icon, indicating that this package has built-in type declarations

    2.1.1 • Public • Published

    oauth-dyn-reg

    npm Downloads/week Coverage Status Dependency Status code style: prettier License

    This is an implementation of the draft OAuth 2.0 Dynamic Client Registration Protocol.

    Installation

    yarn add oauth-dyn-reg

    Usage

    import register from 'oauth-dyn-reg';
    
    const metadata = { /* See RFC section 2 for what goes here */ };
    const registrationEndpoint = /* See RFC section 3 */;
    
    // resp contains your client's registered metadata
    const resp = await register(metadata, registrationEndpoint);
    // !!!: resp may differ from metadata, the server MAY change values

    An OAuth 2.0 token maybe optionally be given as a third parameter.

    References

    1. OAuth 2.0 Dynamic Client Registration Protocol
    2. OAuth 2.0 Authorization Framework

    Install

    npm i oauth-dyn-reg

    DownloadsWeekly Downloads

    43

    Version

    2.1.1

    License

    Apache-2.0

    Unpacked Size

    22.5 kB

    Total Files

    6

    Last publish

    Collaborators

    • awlayton