Skip to content

Commit

Permalink
Merge pull request #785 from supertokens/docs/nestjs-guide-fixes
Browse files Browse the repository at this point in the history
Minor NestJS guide corrections
  • Loading branch information
rishabhpoddar authored Mar 21, 2024
2 parents 0a19517 + d44fa3f commit f75e0b7
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 15 deletions.
6 changes: 3 additions & 3 deletions v2/emailpassword/nestjs/guide.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ import { Module } from '@nestjs/common';
import { SupertokensService } from './supertokens/supertokens.service';
import { MiddlewareConsumer, NestModule, DynamicModule } from '@nestjs/common';
// @ts-ignore
import { AuthMiddleware } from './auth/auth.middleware';
import { AuthMiddleware } from './auth.middleware';
// @ts-ignore
import { ConfigInjectionToken, AuthModuleConfig } from './config.interface';

Expand Down Expand Up @@ -243,10 +243,10 @@ Enable and update your CORS settings in `main.ts`:
import { NestFactory } from '@nestjs/core';
import supertokens from 'supertokens-node';
// @ts-ignore
import { AuthModule } from './app.module';
import { AppModule } from './app.module';

async function bootstrap() {
const app = await NestFactory.create(AuthModule);
const app = await NestFactory.create(AppModule);
//highlight-start
app.enableCors({
origin: ['^{form_websiteDomain}'],
Expand Down
6 changes: 3 additions & 3 deletions v2/passwordless/nestjs/guide.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ import { Module } from '@nestjs/common';
import { SupertokensService } from './supertokens/supertokens.service';
import { MiddlewareConsumer, NestModule, DynamicModule } from '@nestjs/common';
// @ts-ignore
import { AuthMiddleware } from './auth/auth.middleware';
import { AuthMiddleware } from './auth.middleware';
// @ts-ignore
import { ConfigInjectionToken, AuthModuleConfig } from './config.interface';

Expand Down Expand Up @@ -262,10 +262,10 @@ Enable and update your CORS settings in `main.ts`:
import { NestFactory } from '@nestjs/core';
import supertokens from 'supertokens-node';
// @ts-ignore
import { AuthModule } from './app.module';
import { AppModule } from './app.module';

async function bootstrap() {
const app = await NestFactory.create(AuthModule);
const app = await NestFactory.create(AppModule);
//highlight-start
app.enableCors({
origin: ['^{form_websiteDomain}'],
Expand Down
6 changes: 3 additions & 3 deletions v2/thirdparty/nestjs/guide.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ import { Module } from '@nestjs/common';
import { SupertokensService } from './supertokens/supertokens.service';
import { MiddlewareConsumer, NestModule, DynamicModule } from '@nestjs/common';
// @ts-ignore
import { AuthMiddleware } from './auth/auth.middleware';
import { AuthMiddleware } from './auth.middleware';
// @ts-ignore
import { ConfigInjectionToken, AuthModuleConfig } from './config.interface';

Expand Down Expand Up @@ -320,10 +320,10 @@ Enable and update your CORS settings in `main.ts`:
import { NestFactory } from '@nestjs/core';
import supertokens from 'supertokens-node';
// @ts-ignore
import { AuthModule } from './app.module';
import { AppModule } from './app.module';

async function bootstrap() {
const app = await NestFactory.create(AuthModule);
const app = await NestFactory.create(AppModule);
//highlight-start
app.enableCors({
origin: ['^{form_websiteDomain}'],
Expand Down
6 changes: 3 additions & 3 deletions v2/thirdpartyemailpassword/nestjs/guide.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ import { Module } from '@nestjs/common';
import { SupertokensService } from './supertokens/supertokens.service';
import { MiddlewareConsumer, NestModule, DynamicModule } from '@nestjs/common';
// @ts-ignore
import { AuthMiddleware } from './auth/auth.middleware';
import { AuthMiddleware } from './auth.middleware';
// @ts-ignore
import { ConfigInjectionToken, AuthModuleConfig } from './config.interface';

Expand Down Expand Up @@ -318,10 +318,10 @@ Enable and update your CORS settings in `main.ts`:
import { NestFactory } from '@nestjs/core';
import supertokens from 'supertokens-node';
// @ts-ignore
import { AuthModule } from './app.module';
import { AppModule } from './app.module';

async function bootstrap() {
const app = await NestFactory.create(AuthModule);
const app = await NestFactory.create(AppModule);
//highlight-start
app.enableCors({
origin: ['^{form_websiteDomain}'],
Expand Down
6 changes: 3 additions & 3 deletions v2/thirdpartypasswordless/nestjs/guide.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ import { Module } from '@nestjs/common';
import { SupertokensService } from './supertokens/supertokens.service';
import { MiddlewareConsumer, NestModule, DynamicModule } from '@nestjs/common';
// @ts-ignore
import { AuthMiddleware } from './auth/auth.middleware';
import { AuthMiddleware } from './auth.middleware';
// @ts-ignore
import { ConfigInjectionToken, AuthModuleConfig } from './config.interface';

Expand Down Expand Up @@ -262,10 +262,10 @@ Enable and update your CORS settings in `main.ts`:
import { NestFactory } from '@nestjs/core';
import supertokens from 'supertokens-node';
// @ts-ignore
import { AuthModule } from './app.module';
import { AppModule } from './app.module';

async function bootstrap() {
const app = await NestFactory.create(AuthModule);
const app = await NestFactory.create(AppModule);
//highlight-start
app.enableCors({
origin: ['^{form_websiteDomain}'],
Expand Down

0 comments on commit f75e0b7

Please sign in to comment.