🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

uxauth

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

uxauth

Authentication management solution for Upstox's Uplink API.

latest
Source
npmnpm
Version
0.1.2
Version published
Maintainers
1
Created
Source

Upauth

Authentication management solution for Upstox's Uplink API.

You only have to implement it in your code, it takes care of caching and reusing the access token.

The token is persisted throughout in the .env till it expires.

Usage

import performAuth from "upauth";
const accessToken = await performAuth();

Install

npm i uxauth
Make sure your .env has the following variables and your redirect_uri is set to the one below on Upstox.

CLIENT_ID = "your client_id"

CLIENT_SECRET = "your client_secret"

REDIRECT_URI = http://localhost:3000/redirect

Refer to Upstox documentation for the same.

License

AGPL-3.0 ©️ Zubin

Keywords

upstox

FAQs

Package last updated on 06 May 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts