Skip to content

This is a Single Sign-On (SSO) service built using the NestJS framework, provide security and seamless user login across multiple applications

Notifications You must be signed in to change notification settings

nax-handle/sso-pointer

Repository files navigation

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);

About

This is a Single Sign-On (SSO) service built using the NestJS framework, provide security and seamless user login across multiple applications

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published