2.2.5 • Published 9 months ago
@thefirstspine/auth v2.2.5
📦 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@latestConfiguration
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: stringThe 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 buildLint
npm run lintPublish on NPM
npm publishLicense
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.