@thefirstspine/auth
v2.2.3
Published
Javascript & Typescript dependency to help developers to use the auth net service.
Downloads
149
Readme
📦 dependency-auth // @thefirstspine/auth
Javascript & Typescript dependency to help developers to use the auth net service.
More information here: https://github.com/thefirstspine/auth
Install
npm i @thefirstspine/auth@latest
Configuration
As part of TFS Platform, this dependency will use environment variable.
| Environement key | Summary | |-|-| | AUTH_URL | Auth net service URL |
Documentation
AuthService
Service to interact with the auth net service.
me
Validates a JWT to the auth platform service.
Synopsis: async me(jwt: string): Promise<number|null>
Params:
jwt: string
The JWT to send to the auth net service.
getAuthNetServiceUrl
Get the auth net service URL according to the AUTH_URL environment variable
Synopsis: getAuthNetServiceUrl(): string
How to use
Build
npm run build
Lint
npm run lint
Publish on NPM
npm publish
License
TFS Platform is NOT licensed. You are free to download, view, run the repository. You are NOT allowed to redistribute this project for both commercial and non-commercial use. Deal with it.