Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@isnolan/nestjs-auth

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@isnolan/nestjs-auth

nestjs-auth is a comprehensive NestJS module for simplified auth management and seamless integration with popular auth platforms.

  • 0.1.2
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
13
decreased by-18.75%
Maintainers
1
Weekly downloads
 
Created
Source

Auth Module for NestJS

AuthModule is a powerful NestJS module designed to streamline auth management by providing seamless integration with popular auth platforms such as Google Sign in, and Apple Sign in .

version downloads license

Features

  • Effortless integration with Google sign in, and Apple Sign in.
  • Supports both synchronous and asynchronous configurations.

Getting Started

Installation

PNPM

Using PNPM Install the package along with the Stripe peer dependency:

pnpm install --save @isnolan/nestjs-auth

Import

Asynchronous configuration

Synchronous Configuration To utilize SubscriptionModule, import and add it to the imports array of your NestJS module, typically AppModule. Here's a synchronous configuration example:

Synchronous configuration
import { AuthModule } from '@isnolan/nestjs-auth';

@Module({
  imports: [
    AuthModule.forRoot({
      google: {
        clientId: `${process.env.GOOGLE_CLIENT_ID}`
      }
    }),
  ],
  providers: [AppService],
})
export class AppModule {}

Asynchronous configuration

Asynchronous Configuration SubscriptionModule also supports asynchronous configuration, useful for determining configurations dynamically at runtime:


import { AuthModule } from '@isnolan/nestjs-auth';
import { ConfigService } from '@nestjs/config';

@Module({
  imports: [
    AuthModule.forRootAsync({
      inject: [ConfigService],
      useFactory: async (config: ConfigService) => config.get('auth'),
    }),
  ],
  providers: [AppService],
})
export class AppModule {}

License

MIT License

Keywords

FAQs

Package last updated on 02 Apr 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc