Skip to content

Latest commit

 

History

History
44 lines (33 loc) · 855 Bytes

README.md

File metadata and controls

44 lines (33 loc) · 855 Bytes

DeviceAuthorizationGrant

A library to help implement the OAuth 2.0 Device Authorization Grant.

Usage

Deno

import { DeviceAuthorizationGrant } from "https://github.com/fdionisi/device-authorization-grant/blob/0.2.0/device-authorization-grant.ts";

const deviceAuthorizationGrant = new DeviceAuthorizationGrant(
  myStorage,
  config,
);

Node.js

// ES Module
import { DeviceAuthorizationGrant } from "@fdionisi/device-authorization-grant";

// Common.js
const { DeviceAuthorizationGrant } = require(
  "@fdionisi/device-authorization-grant",
);

const deviceAuthorizationGrant = new DeviceAuthorizationGrant(
  myStorage,
  config,
);

License

This library is distributed under the terms the MIT license.

See LICENSE for details.