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
311
311
` ` ` ts title = " ./src/main.ts"
312
312
import { NestFactory } from ' @nestjs/core' ;
313
313
// @ts-ignore
314
- import { AuthModule } from ' ./app.module' ;
314
+ import { AppModule } from ' ./app.module' ;
315
315
316
316
import supertokens from ' supertokens-node' ;
317
317
// @ts-ignore
318
318
import { SupertokensExceptionFilter } from ' ./auth/auth.filter' ;
319
319
320
320
async function bootstrap() {
321
- const app = await NestFactory .create (AuthModule );
321
+ const app = await NestFactory .create (AppModule );
322
322
app .enableCors ({
323
323
origin: [' ^{form_websiteDomain}' ],
324
324
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
330
330
` ` ` ts title = " ./src/main.ts"
331
331
import { NestFactory } from ' @nestjs/core' ;
332
332
// @ts-ignore
333
- import { AuthModule } from ' ./app.module' ;
333
+ import { AppModule } from ' ./app.module' ;
334
334
335
335
import supertokens from ' supertokens-node' ;
336
336
// @ts-ignore
337
337
import { SupertokensExceptionFilter } from ' ./auth/auth.filter' ;
338
338
339
339
async function bootstrap() {
340
- const app = await NestFactory .create (AuthModule );
340
+ const app = await NestFactory .create (AppModule );
341
341
app .enableCors ({
342
342
origin: [' ^{form_websiteDomain}' ],
343
343
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
388
388
```ts title="./src/main.ts"
389
389
import { NestFactory } from '@nestjs/core';
390
390
// @ts-ignore
391
- import { AuthModule } from './app.module';
391
+ import { AppModule } from './app.module';
392
392
393
393
import supertokens from 'supertokens-node';
394
394
// @ts-ignore
395
395
import { SupertokensExceptionFilter } from './auth/auth.filter';
396
396
397
397
async function bootstrap() {
398
- const app = await NestFactory .create (AuthModule );
398
+ const app = await NestFactory .create (AppModule );
399
399
app .enableCors ({
400
400
origin: [' ^{form_websiteDomain}' ],
401
401
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
390
390
```ts title="./src/main.ts"
391
391
import { NestFactory } from '@nestjs/core';
392
392
// @ts-ignore
393
- import { AuthModule } from './app.module';
393
+ import { AppModule } from './app.module';
394
394
395
395
import supertokens from 'supertokens-node';
396
396
// @ts-ignore
397
397
import { SupertokensExceptionFilter } from './auth/auth.filter';
398
398
399
399
async function bootstrap() {
400
- const app = await NestFactory .create (AuthModule );
400
+ const app = await NestFactory .create (AppModule );
401
401
app .enableCors ({
402
402
origin: [' ^{form_websiteDomain}' ],
403
403
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
405
405
```ts title="./src/main.ts"
406
406
import { NestFactory } from '@nestjs/core';
407
407
// @ts-ignore
408
- import { AuthModule } from './app.module';
408
+ import { AppModule } from './app.module';
409
409
410
410
import supertokens from 'supertokens-node';
411
411
// @ts-ignore
412
412
import { SupertokensExceptionFilter } from './auth/auth.filter';
413
413
414
414
async function bootstrap() {
415
- const app = await NestFactory .create (AuthModule );
415
+ const app = await NestFactory .create (AppModule );
416
416
app .enableCors ({
417
417
origin: [' ^{form_websiteDomain}' ],
418
418
allowedHeaders: [' content-type' , ... supertokens .getAllCORSHeaders ()],
You can’t perform that action at this time.
0 commit comments