A library to help implement the OAuth 2.0 Device Authorization Grant.
npm install @fdionisi/device-authorization-grant
A library to help implement the OAuth 2.0 Device Authorization Grant.
``ts
import { DeviceAuthorizationGrant } from "https://github.com/fdionisi/device-authorization-grant/blob/0.2.0/device-authorization-grant.ts";
const deviceAuthorizationGrant = new DeviceAuthorizationGrant(
myStorage,
config,
);
`
`ts
// ES Module
import { DeviceAuthorizationGrant } from "@fdionisi/device-authorization-grant";
// Common.js
const { DeviceAuthorizationGrant } = require(
"@fdionisi/device-authorization-grant",
);
const deviceAuthorizationGrant = new DeviceAuthorizationGrant(
myStorage,
config,
);
``
This library is distributed under the terms the MIT license.
See LICENSE for details.