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

2.5.5 • Public • Published

📦 dependency-auth-nest // @thefirstspine/auth-nest

Built on top of https://github.com/thefirstspine/dependency-auth|@thefirstspine/auth. Provides Nest services & guard.

Install

npm i @thefirstspine/auth-nest@latest

Configuration

The configuration is the same as https://github.com/thefirstspine/dependency-auth|@thefirstspine/auth module.

Documentation

AuthService

Nest service to check auth context from 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.

AuthGuard

Guard to filter incoming requests that are intend to be signed with a JWT under the Authorization HTTP header. Pass the validation when the provided JWT is present & valid in the auth net service.

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-nest

Weekly Downloads

15

Version

2.5.5

License

ISC

Unpacked Size

30 kB

Total Files

20

Last publish

Collaborators

  • thefirstspine