Skip to content

Commit

Permalink
removed unused variables
Browse files Browse the repository at this point in the history
  • Loading branch information
varsha766 committed Nov 10, 2023
1 parent ad1eb9b commit 59cbb9b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 18 deletions.
4 changes: 1 addition & 3 deletions src/app-auth/app-auth.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,8 @@ import { HidWalletModule } from 'src/hid-wallet/hid-wallet.module';
import { EdvModule } from 'src/edv/edv.module';
import { AppAuthSecretService } from './services/app-auth-passord.service';
import { JwtModule } from '@nestjs/jwt';
import { JwtStrategy, JwtStrategyApp } from './strategy/jwt.strategy';
import { JwtStrategy } from './strategy/jwt.strategy';
import { AppAuthApiKeyService } from './services/app-auth-apikey.service';
import { WhitelistAppCorsMiddleware } from './middlewares/cors.middleware';
import { TrimMiddleware } from 'src/utils/middleware/trim.middleware';
@Module({
imports: [
Expand All @@ -34,7 +33,6 @@ import { TrimMiddleware } from 'src/utils/middleware/trim.middleware';
HidWalletService,
AppAuthSecretService,
JwtStrategy,
JwtStrategyApp,
AppAuthApiKeyService,
],
controllers: [AppAuthController],
Expand Down
16 changes: 1 addition & 15 deletions src/app-auth/controllers/app-auth.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,28 +14,18 @@ import {
UseGuards,
Req,
Delete,
Headers,
Logger,
} from '@nestjs/common';
import { CreateAppDto } from 'src/app-auth/dtos/create-app.dto';
import {
GenerateTokenError,
GenerateTokenResponse,
RegenrateAppApiSecretResponse,
} from '../dtos/generate-token.dto';
import { RegenrateAppApiSecretResponse } from '../dtos/generate-token.dto';
import { AppAuthService } from 'src/app-auth/services/app-auth.service';
import {
ApiBadRequestResponse,
ApiBasicAuth,
ApiBearerAuth,
ApiCreatedResponse,
ApiExcludeController,
ApiHeader,
ApiNotFoundResponse,
ApiQuery,
ApiResponse,
ApiTags,
ApiUnauthorizedResponse,
} from '@nestjs/swagger';
import { App, createAppResponse } from '../schemas/app.schema';
import { AppNotFoundException } from 'src/app-auth/exceptions/app-not-found.exception';
Expand All @@ -44,10 +34,6 @@ import { MongooseClassSerializerInterceptor } from '../../utils/utils';
import { AllExceptionsFilter } from '../../utils/utils';
import { AppError, GetAppList } from '../dtos/fetch-app.dto';
import { PaginationDto } from 'src/utils/pagination.dto';
import {
AppSecretHeader,
AppSubdomainHeader,
} from '../decorator/app-sercret.decorator';
import { TransformResponseInterceptor } from '../interceptors/transformResponse.interseptor';
import { AuthenticatedGuard } from 'src/org-user/guard/authenticated.guard';

Expand Down
4 changes: 4 additions & 0 deletions src/app-auth/services/app-auth.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -276,6 +276,10 @@ export class AppAuthService {
appId: appDetail.appId,
userId: appDetail.userId,
grantType,
kmsId: appDetail.kmsId,
whitelistedCors: appDetail.whitelistedCors,
subdomain: appDetail.subdomain,
edvId: appDetail.edvId,
};

const secret = this.config.get('JWT_SECRET');
Expand Down

0 comments on commit 59cbb9b

Please sign in to comment.