File tree Expand file tree Collapse file tree 5 files changed +10
-10
lines changed
thirdpartyemailpassword/nestjs
thirdpartypasswordless/nestjs Expand file tree Collapse file tree 5 files changed +10
-10
lines changed Original file line number Diff line number Diff 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"
312312import { NestFactory } from ' @nestjs/core' ;
313313// @ts-ignore
314- import { AuthModule } from ' ./app.module' ;
314+ import { AppModule } from ' ./app.module' ;
315315
316316import supertokens from ' supertokens-node' ;
317317// @ts-ignore
318318import { SupertokensExceptionFilter } from ' ./auth/auth.filter' ;
319319
320320async 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 ()],
Original file line number Diff line number Diff 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"
331331import { NestFactory } from ' @nestjs/core' ;
332332// @ts-ignore
333- import { AuthModule } from ' ./app.module' ;
333+ import { AppModule } from ' ./app.module' ;
334334
335335import supertokens from ' supertokens-node' ;
336336// @ts-ignore
337337import { SupertokensExceptionFilter } from ' ./auth/auth.filter' ;
338338
339339async 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 ()],
Original file line number Diff line number Diff 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"
389389import { NestFactory } from '@nestjs/core';
390390// @ts-ignore
391- import { AuthModule } from './app.module';
391+ import { AppModule } from './app.module';
392392
393393import supertokens from 'supertokens-node';
394394// @ts-ignore
395395import { SupertokensExceptionFilter } from './auth/auth.filter';
396396
397397async 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 ()],
Original file line number Diff line number Diff 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"
391391import { NestFactory } from '@nestjs/core';
392392// @ts-ignore
393- import { AuthModule } from './app.module';
393+ import { AppModule } from './app.module';
394394
395395import supertokens from 'supertokens-node';
396396// @ts-ignore
397397import { SupertokensExceptionFilter } from './auth/auth.filter';
398398
399399async 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 ()],
Original file line number Diff line number Diff 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"
406406import { NestFactory } from '@nestjs/core';
407407// @ts-ignore
408- import { AuthModule } from './app.module';
408+ import { AppModule } from './app.module';
409409
410410import supertokens from 'supertokens-node';
411411// @ts-ignore
412412import { SupertokensExceptionFilter } from './auth/auth.filter';
413413
414414async 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 ()],
You can’t perform that action at this time.
0 commit comments