https://github.com/nguynthuhigh/sso-pointer
This is a Single Sign-On (SSO) service built using the NestJS framework, provide security and seamless user login across multiple applications
https://github.com/nguynthuhigh/sso-pointer
mongodb nestjs nodejs pointer sso sso-authentication
Last synced: about 1 year ago
JSON representation
This is a Single Sign-On (SSO) service built using the NestJS framework, provide security and seamless user login across multiple applications
- Host: GitHub
- URL: https://github.com/nguynthuhigh/sso-pointer
- Owner: nguynthuhigh
- Created: 2024-09-20T10:36:47.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-11-14T14:41:10.000Z (over 1 year ago)
- Last Synced: 2025-03-19T02:11:25.111Z (about 1 year ago)
- Topics: mongodb, nestjs, nodejs, pointer, sso, sso-authentication
- Language: TypeScript
- Homepage: https://sso-pointer.vercel.app/login
- Size: 186 KB
- Stars: 3
- Watchers: 1
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
**[OAuth Pointer Node.js Library](https://pointer.io.vn/)**
**[OAuth Pointer Github](https://github.com/nguynthuhigh/oauth-pointer-npm)**
# 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](https://auth.pointer.io.vn/)**
```typescript
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
```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);
```
