@thefirstspine/auth
TypeScript icon, indicating that this package has built-in type declarations

2.2.3 • Public • Published

📦 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.

Readme

Keywords

none

Package Sidebar

Install

npm i @thefirstspine/auth

Weekly Downloads

107

Version

2.2.3

License

ISC

Unpacked Size

25.9 kB

Total Files

16

Last publish

Collaborators

  • thefirstspine