Skip to content

Commit bd1fa35

Browse files
committed
fix(authentication): resolve container build TypeScript errors
Remove duplicate TokenType and AuthUtils imports in biometric handler and declare ioredis as a direct dependency for metrics redis usage.
1 parent 510fdc2 commit bd1fa35

3 files changed

Lines changed: 5 additions & 3 deletions

File tree

modules/authentication/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@
5050
"convict": "^6.2.5",
5151
"escape-string-regexp": "^5.0.0",
5252
"ethereumjs-util": "^7.1.5",
53+
"ioredis": "^5.10.1",
5354
"jsonwebtoken": "^9.0.3",
5455
"jwks-rsa": "^4.0.1",
5556
"lodash-es": "^4.17.23",

modules/authentication/src/handlers/biometric.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,13 @@ import {
1414
} from '@conduitplatform/module-tools';
1515
import { status } from '@grpc/grpc-js';
1616
import { Token, User } from '../models/index.js';
17-
import { TokenType } from '../constants/index.js';
18-
import { AuthUtils } from '../utils/index.js';
1917
import { ALT_STRATEGY_AUTH, TokenType } from '../constants/index.js';
18+
import { AuthUtils } from '../utils/index.js';
2019
import { IAuthenticationStrategy } from '../interfaces/index.js';
2120
import { TokenProvider } from './tokenProvider.js';
2221
import { v4 as uuid } from 'uuid';
2322
import crypto from 'crypto';
2423
import { BiometricToken } from '../models/BiometricToken.schema.js';
25-
import { AuthUtils } from '../utils/index.js';
2624

2725
export class BiometricHandlers implements IAuthenticationStrategy {
2826
private initialized: boolean = false;

pnpm-lock.yaml

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)