From ded965614569c2419f9247fc37111a51a8568124 Mon Sep 17 00:00:00 2001 From: Mihaly Lengyel Date: Mon, 7 Oct 2024 00:06:54 +0200 Subject: [PATCH] fix typo in nestjs integration guide --- v2/emailpassword/nestjs/guide.mdx | 4 ++-- v2/passwordless/nestjs/guide.mdx | 4 ++-- v2/thirdparty/nestjs/guide.mdx | 4 ++-- v2/thirdpartyemailpassword/nestjs/guide.mdx | 4 ++-- v2/thirdpartypasswordless/nestjs/guide.mdx | 4 ++-- 5 files changed, 10 insertions(+), 10 deletions(-) diff --git a/v2/emailpassword/nestjs/guide.mdx b/v2/emailpassword/nestjs/guide.mdx index 6fcd78d7d..4945faeb3 100644 --- a/v2/emailpassword/nestjs/guide.mdx +++ b/v2/emailpassword/nestjs/guide.mdx @@ -311,14 +311,14 @@ We need to add this filter as a global exception filter. You can do this in `mai ```ts title="./src/main.ts" import { NestFactory } from '@nestjs/core'; // @ts-ignore -import { AuthModule } from './app.module'; +import { AppModule } from './app.module'; import supertokens from 'supertokens-node'; // @ts-ignore import { SupertokensExceptionFilter } from './auth/auth.filter'; async function bootstrap() { - const app = await NestFactory.create(AuthModule); + const app = await NestFactory.create(AppModule); app.enableCors({ origin: ['^{form_websiteDomain}'], allowedHeaders: ['content-type', ...supertokens.getAllCORSHeaders()], diff --git a/v2/passwordless/nestjs/guide.mdx b/v2/passwordless/nestjs/guide.mdx index 30066a2cc..c17f44b65 100644 --- a/v2/passwordless/nestjs/guide.mdx +++ b/v2/passwordless/nestjs/guide.mdx @@ -330,14 +330,14 @@ We need to add this filter as a global exception filter. You can do this in `mai ```ts title="./src/main.ts" import { NestFactory } from '@nestjs/core'; // @ts-ignore -import { AuthModule } from './app.module'; +import { AppModule } from './app.module'; import supertokens from 'supertokens-node'; // @ts-ignore import { SupertokensExceptionFilter } from './auth/auth.filter'; async function bootstrap() { - const app = await NestFactory.create(AuthModule); + const app = await NestFactory.create(AppModule); app.enableCors({ origin: ['^{form_websiteDomain}'], allowedHeaders: ['content-type', ...supertokens.getAllCORSHeaders()], diff --git a/v2/thirdparty/nestjs/guide.mdx b/v2/thirdparty/nestjs/guide.mdx index e186c4251..585eb5128 100644 --- a/v2/thirdparty/nestjs/guide.mdx +++ b/v2/thirdparty/nestjs/guide.mdx @@ -388,14 +388,14 @@ We need to add this filter as a global exception filter. You can do this in `mai ```ts title="./src/main.ts" import { NestFactory } from '@nestjs/core'; // @ts-ignore -import { AuthModule } from './app.module'; +import { AppModule } from './app.module'; import supertokens from 'supertokens-node'; // @ts-ignore import { SupertokensExceptionFilter } from './auth/auth.filter'; async function bootstrap() { - const app = await NestFactory.create(AuthModule); + const app = await NestFactory.create(AppModule); app.enableCors({ origin: ['^{form_websiteDomain}'], allowedHeaders: ['content-type', ...supertokens.getAllCORSHeaders()], diff --git a/v2/thirdpartyemailpassword/nestjs/guide.mdx b/v2/thirdpartyemailpassword/nestjs/guide.mdx index e086573d1..bcd6f9e4e 100644 --- a/v2/thirdpartyemailpassword/nestjs/guide.mdx +++ b/v2/thirdpartyemailpassword/nestjs/guide.mdx @@ -390,14 +390,14 @@ We need to add this filter as a global exception filter. You can do this in `mai ```ts title="./src/main.ts" import { NestFactory } from '@nestjs/core'; // @ts-ignore -import { AuthModule } from './app.module'; +import { AppModule } from './app.module'; import supertokens from 'supertokens-node'; // @ts-ignore import { SupertokensExceptionFilter } from './auth/auth.filter'; async function bootstrap() { - const app = await NestFactory.create(AuthModule); + const app = await NestFactory.create(AppModule); app.enableCors({ origin: ['^{form_websiteDomain}'], allowedHeaders: ['content-type', ...supertokens.getAllCORSHeaders()], diff --git a/v2/thirdpartypasswordless/nestjs/guide.mdx b/v2/thirdpartypasswordless/nestjs/guide.mdx index 3dbe57ea3..db0c9217b 100644 --- a/v2/thirdpartypasswordless/nestjs/guide.mdx +++ b/v2/thirdpartypasswordless/nestjs/guide.mdx @@ -405,14 +405,14 @@ We need to add this filter as a global exception filter. You can do this in `mai ```ts title="./src/main.ts" import { NestFactory } from '@nestjs/core'; // @ts-ignore -import { AuthModule } from './app.module'; +import { AppModule } from './app.module'; import supertokens from 'supertokens-node'; // @ts-ignore import { SupertokensExceptionFilter } from './auth/auth.filter'; async function bootstrap() { - const app = await NestFactory.create(AuthModule); + const app = await NestFactory.create(AppModule); app.enableCors({ origin: ['^{form_websiteDomain}'], allowedHeaders: ['content-type', ...supertokens.getAllCORSHeaders()],