npm.io
0.0.21 • Published 11 months ago

citifuel-auth-guard

Licence
UNLICENSED
Version
0.0.21
Deps
7
Size
137 kB
Vulns
2
Weekly
0

Nest Logo

A progressive Node.js framework for building efficient and scalable server-side applications.

NPM Version Package License NPM Downloads CircleCI Coverage Discord Backers on Open Collective Sponsors on Open Collective Support us

Description

Nest framework TypeScript starter repository.

Installation

$ yarn install

Running the app

# development
$ yarn run start

# watch mode
$ yarn run start:dev

# production mode
$ yarn run start:prod

Test

# unit tests
$ yarn run test

# e2e tests
$ yarn run test:e2e

# test coverage
$ yarn run test:cov

Support

Nest is an MIT-licensed open source project. It can grow thanks to the sponsors and support by the amazing backers. If you'd like to join them, please read more here.

Stay in touch

License

Nest is MIT licensed.

CitiFuel Auth Guard

A NestJS module for gRPC-based authentication.

Installation
npm install citifuel-auth-guard
Usage

Import and configure the AuthModule in your application:

import { AuthModule } from 'citifuel-auth-guard';

@Module({
  imports: [
    AuthModule.register({
      host: 'localhost',
      port: 5000,
      realm: 'my-realm'
    })
    // OR
    AuthModule.register({
      url: 'localhost:5000',
      realm: 'my-realm'
    })
  ]
})
export class AppModule {}
Configuration Options

The module accepts the following options:

  • url: Complete URL string (e.g., 'localhost:5000')
  • host: Host address (alternative to url)
  • port: Port number (alternative to url)
  • realm: Authentication realm