Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions v2/emailpassword/nestjs/guide.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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()],
Expand Down
4 changes: 2 additions & 2 deletions v2/passwordless/nestjs/guide.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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()],
Expand Down
4 changes: 2 additions & 2 deletions v2/thirdparty/nestjs/guide.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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()],
Expand Down
4 changes: 2 additions & 2 deletions v2/thirdpartyemailpassword/nestjs/guide.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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()],
Expand Down
4 changes: 2 additions & 2 deletions v2/thirdpartypasswordless/nestjs/guide.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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()],
Expand Down