Skip to content

A library to help implement the OAuth 2.0 Device Authorization Grant. Written for Deno and works in Node.js.

License

Notifications You must be signed in to change notification settings

fdionisi/device-authorization-grant

Repository files navigation

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.

About

A library to help implement the OAuth 2.0 Device Authorization Grant. Written for Deno and works in Node.js.

Topics

Resources

License

Stars

Watchers

Forks