Skip to content

Commit 51e3f15

Browse files
Merge pull request #856 from supertokens/fix_nestjs_typo
fix typo in nestjs integration guide
2 parents 951d760 + ded9656 commit 51e3f15

File tree

5 files changed

+10
-10
lines changed

5 files changed

+10
-10
lines changed

v2/emailpassword/nestjs/guide.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -311,14 +311,14 @@ We need to add this filter as a global exception filter. You can do this in `mai
311311
```ts title="./src/main.ts"
312312
import { NestFactory } from '@nestjs/core';
313313
// @ts-ignore
314-
import { AuthModule } from './app.module';
314+
import { AppModule } from './app.module';
315315

316316
import supertokens from 'supertokens-node';
317317
// @ts-ignore
318318
import { SupertokensExceptionFilter } from './auth/auth.filter';
319319

320320
async function bootstrap() {
321-
const app = await NestFactory.create(AuthModule);
321+
const app = await NestFactory.create(AppModule);
322322
app.enableCors({
323323
origin: ['^{form_websiteDomain}'],
324324
allowedHeaders: ['content-type', ...supertokens.getAllCORSHeaders()],

v2/passwordless/nestjs/guide.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -330,14 +330,14 @@ We need to add this filter as a global exception filter. You can do this in `mai
330330
```ts title="./src/main.ts"
331331
import { NestFactory } from '@nestjs/core';
332332
// @ts-ignore
333-
import { AuthModule } from './app.module';
333+
import { AppModule } from './app.module';
334334

335335
import supertokens from 'supertokens-node';
336336
// @ts-ignore
337337
import { SupertokensExceptionFilter } from './auth/auth.filter';
338338

339339
async function bootstrap() {
340-
const app = await NestFactory.create(AuthModule);
340+
const app = await NestFactory.create(AppModule);
341341
app.enableCors({
342342
origin: ['^{form_websiteDomain}'],
343343
allowedHeaders: ['content-type', ...supertokens.getAllCORSHeaders()],

v2/thirdparty/nestjs/guide.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -388,14 +388,14 @@ We need to add this filter as a global exception filter. You can do this in `mai
388388
```ts title="./src/main.ts"
389389
import { NestFactory } from '@nestjs/core';
390390
// @ts-ignore
391-
import { AuthModule } from './app.module';
391+
import { AppModule } from './app.module';
392392

393393
import supertokens from 'supertokens-node';
394394
// @ts-ignore
395395
import { SupertokensExceptionFilter } from './auth/auth.filter';
396396

397397
async function bootstrap() {
398-
const app = await NestFactory.create(AuthModule);
398+
const app = await NestFactory.create(AppModule);
399399
app.enableCors({
400400
origin: ['^{form_websiteDomain}'],
401401
allowedHeaders: ['content-type', ...supertokens.getAllCORSHeaders()],

v2/thirdpartyemailpassword/nestjs/guide.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -390,14 +390,14 @@ We need to add this filter as a global exception filter. You can do this in `mai
390390
```ts title="./src/main.ts"
391391
import { NestFactory } from '@nestjs/core';
392392
// @ts-ignore
393-
import { AuthModule } from './app.module';
393+
import { AppModule } from './app.module';
394394

395395
import supertokens from 'supertokens-node';
396396
// @ts-ignore
397397
import { SupertokensExceptionFilter } from './auth/auth.filter';
398398

399399
async function bootstrap() {
400-
const app = await NestFactory.create(AuthModule);
400+
const app = await NestFactory.create(AppModule);
401401
app.enableCors({
402402
origin: ['^{form_websiteDomain}'],
403403
allowedHeaders: ['content-type', ...supertokens.getAllCORSHeaders()],

v2/thirdpartypasswordless/nestjs/guide.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -405,14 +405,14 @@ We need to add this filter as a global exception filter. You can do this in `mai
405405
```ts title="./src/main.ts"
406406
import { NestFactory } from '@nestjs/core';
407407
// @ts-ignore
408-
import { AuthModule } from './app.module';
408+
import { AppModule } from './app.module';
409409

410410
import supertokens from 'supertokens-node';
411411
// @ts-ignore
412412
import { SupertokensExceptionFilter } from './auth/auth.filter';
413413

414414
async function bootstrap() {
415-
const app = await NestFactory.create(AuthModule);
415+
const app = await NestFactory.create(AppModule);
416416
app.enableCors({
417417
origin: ['^{form_websiteDomain}'],
418418
allowedHeaders: ['content-type', ...supertokens.getAllCORSHeaders()],

0 commit comments

Comments
 (0)