open-index/open-npm huggingface dataset:
npm package: @smartsoft001/auth-shell-nestjs
Description: Utils for authorization
Author: Emil Juchnikowski
Latest version: 2.117.0

# @smartsoft001/auth-shell-nestjs

## Installation

`npm i @smartsoft001/auth-shell-nestjs`

## Modules

### AuthShellNestjsModule

<table>
    <thead>
        <tr>
            <td>Method</td>
            <td>Description</td>
        </tr>
    </thead>
    <tr>
        <td>forRoot(options: { tokenConfig: TokenConfig })</td>
        <td>Configures the auth module with JWT, Passport, and TypeORM integration</td>
    </tr>
</table>

### Configuration Options

<table>
    <thead>
        <tr>
            <td>Property</td>
            <td>Description</td>
        </tr>
    </thead>
    <tr>
        <td>tokenConfig.secretOrPrivateKey</td>
        <td>JWT secret key for token signing</td>
    </tr>
    <tr>
        <td>tokenConfig.expiredIn</td>
        <td>Token expiration time</td>
    </tr>
</table>

## Controllers

### TokenController

<table>
    <thead>
        <tr>
            <td>Endpoint</td>
            <td>Description</td>
        </tr>
    </thead>
    <tr>
        <td>POST /token</td>
        <td>Creates authentication tokens supporting password, refresh token, Facebook, and Google grant types</td>
    </tr>
</table>

## Running unit tests

Run `nx test auth-shell-nestjs` to execute the unit tests via [Jest](https://jestjs.io).