@vas-ilotusland/loopback.extension.multi-tenancy-vas
TypeScript icon, indicating that this package has built-in type declarations

0.0.12 • Public • Published

multi-tenant-jwt

LoopBack

training

Installation

Install MultiTenantJwtComponent using npm;

$ npm install multi-tenant-jwt

Basic Use

Configure and load MultiTenantJwtComponent in the application constructor as shown below.

import {MultiTenantJwtComponent, MultiTenantJwtComponentOptions, DEFAULT_MULTI_TENANT_JWT_OPTIONS} from 'multi-tenant-jwt';
// ...
export class MyApplication extends BootMixin(ServiceMixin(RepositoryMixin(RestApplication))) {
  constructor(options: ApplicationConfig = {}) {
    const opts: MultiTenantJwtComponentOptions = DEFAULT_MULTI_TENANT_JWT_OPTIONS;
    this.configure(MultiTenantJwtComponentBindings.COMPONENT).to(opts);
      // Put the configuration options here
    });
    this.component(MultiTenantJwtComponent);
    // ...
  }
  // ...
}

Package Sidebar

Install

npm i @vas-ilotusland/loopback.extension.multi-tenancy-vas

Weekly Downloads

3

Version

0.0.12

License

none

Unpacked Size

13.3 kB

Total Files

13

Last publish

Collaborators

  • ludinhquan
  • ldquan
  • qui.dinh
  • thanhtungdp
  • kaonashi164