Skip to content

Commit

Permalink
Merge pull request #856 from supertokens/fix_nestjs_typo
Browse files Browse the repository at this point in the history
fix typo in nestjs integration guide
  • Loading branch information
rishabhpoddar authored Oct 7, 2024
2 parents 951d760 + ded9656 commit 51e3f15
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 10 deletions.
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

0 comments on commit 51e3f15

Please sign in to comment.