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

1.0.3 • Public • Published

Pointer Logo

OAuth Pointer Node.js Library

OAuth Pointer Github

Installing

npm install oauth-pointer
# or
yarn add oauth-pointer

Documentation

Usage

[!NOTE] The package needs clientId, clientSecret to configure, which you can get at Pointer Apps

import { PointerStrategy } from "oauth-pointer";

const pointer = new PointerStrategy({
  clientId: process.env.POINTER_CLIENT_ID,
  clientSecret: process.env.POINTER_CLIENT_SECRET,
  callbackUrl: process.env.POINTER_CALLBACK_URL,
});
const accessToken = await pointer.getAccessToken("code");
console.log(accessToken);

or Javascript

const { PointerStrategy } = require("oauth-pointer");

const pointer = new PointerStrategy({
  clientId: process.env.POINTER_CLIENT_ID,
  clientSecret: process.env.POINTER_CLIENT_SECRET,
  callbackUrl: process.env.POINTER_CALLBACK_URL,
});
const accessToken = await pointer.getAccessToken("code");
console.log(accessToken);

Readme

Keywords

Package Sidebar

Install

npm i oauth-pointer

Weekly Downloads

2

Version

1.0.3

License

ISC

Unpacked Size

4.24 kB

Total Files

4

Last publish

Collaborators

  • nguynthuhigh