Skip to content

Commit

Permalink
fix(chore): sonar fixes
Browse files Browse the repository at this point in the history
sonar fixes

GH-125
  • Loading branch information
Karunesh Mani Tripathi committed Nov 20, 2023
1 parent ef7432a commit e168fde
Showing 1 changed file with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
// SONAR-IGNORE-ALL
import {inject, Provider} from '@loopback/core';
import {HttpErrors, Request} from '@loopback/rest';
import { inject, Provider } from '@loopback/core';
import { HttpErrors, Request } from '@loopback/rest';
// eslint-disable-next-line @typescript-eslint/naming-convention
import * as ClientPasswordStrategy from './client-password-strategy';

import {AuthErrorKeys} from '../../../error-keys';
import {IAuthClient} from '../../../types';
import {Strategies} from '../../keys';
import {VerifyFunction} from '../../types';
import { AuthErrorKeys } from '../../../error-keys';
import { IAuthClient } from '../../../types';
import { Strategies } from '../../keys';
import { VerifyFunction } from '../../types';

export interface ClientPasswordStrategyFactory {
(
Expand All @@ -22,7 +22,7 @@ export class ClientPasswordStrategyFactoryProvider
constructor(
@inject(Strategies.Passport.OAUTH2_CLIENT_PASSWORD_VERIFIER)
private readonly verifier: VerifyFunction.OauthClientPasswordFn,
) {}
) { }

value(): ClientPasswordStrategyFactory {
return (options, verifier) =>
Expand Down Expand Up @@ -53,7 +53,7 @@ export class ClientPasswordStrategyFactoryProvider
clientSecret: string | undefined,
cb: (err: Error | null, client?: IAuthClient | null) => void,
req: Request | undefined,
) => {
) => {//NOSONAR
try {
const client = await verifyFn(clientId, clientSecret, req);
this.clientPasswordVerifierHelper(client, clientSecret);
Expand Down

0 comments on commit e168fde

Please sign in to comment.