Implemented SuperTokens
This commit is contained in:
@@ -1,9 +1,24 @@
|
||||
import { Module } from '@nestjs/common';
|
||||
import { AppController } from './app.controller';
|
||||
import { AppService } from './app.service';
|
||||
import { AuthModule } from './auth/auth.module';
|
||||
import { ConfigModule } from '@nestjs/config';
|
||||
|
||||
@Module({
|
||||
imports: [],
|
||||
imports: [
|
||||
ConfigModule.forRoot(),
|
||||
AuthModule.forRoot({
|
||||
connectionURI: process.env.ST_API_URL,
|
||||
apiKey: process.env.ST_API_KEY,
|
||||
appInfo: {
|
||||
appName: process.env.APP_NAME,
|
||||
apiDomain: process.env.APP_URL,
|
||||
websiteDomain: process.env.WEBAPP_URL,
|
||||
apiBasePath: '/auth/api',
|
||||
websiteBasePath: '/auth',
|
||||
},
|
||||
}),
|
||||
],
|
||||
controllers: [AppController],
|
||||
providers: [AppService],
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user