Getting Started

Before starting, you need to be authenticated, since the package is hosted within a private npm registry, the authentication steps are described before.

Authentication chevron-right

First, you need to install the package using the following command:

npm i @tradinos/cms-backend-authorization

Second, in your App Module, you need to import AuthorizationModule and provide the appropriate configuration depending on your use case

import { Module } from '@nestjs/common';
import { AuthorizationModule } from '@tradinos/cms-backend-authorization';

@Module({
    imports: [
        AuthorizationModule.registerAsync({
            // Options Goes Here
        }),
    ],
    controllers: [],
    providers: [],
})
export class AppModule {}

We will go over the available options, but as for now, congrats, you have an authorization system installed in your app, neat!

Last updated