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

1.0.7 • Public • Published

Pointer Logo

OAuth Pointer Node.js Library

OAuth Pointer Github

Installation

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

Usage

const { PointerStrategy } = require("sso-pointer");
const pointer = new PointerStrategy(
  process.env.POINTER_CLIENT_ID,
  process.env.POINTER_CLIENT_SECRET
);

const data = await pointer.getAccessToken(code);
// {
//   accessToken: 'eyJhbGciOiJSUz.......',
//   user: { _id: '66f18f7c2c298da02e857d85', email: 'admin@pointer.com',image:'image.url.com',name:'Admin' }
// }
//Verify token
const payload = await pointer.verifyAccessToken(accessToken);
console.log(payload);

Readme

Keywords

Package Sidebar

Install

npm i sso-pointer

Weekly Downloads

2

Version

1.0.7

License

ISC

Unpacked Size

5.22 kB

Total Files

6

Last publish

Collaborators

  • nguynthuhigh