Skip to content

Commit

Permalink
fix databox indexer
Browse files Browse the repository at this point in the history
  • Loading branch information
4rthem committed Jan 3, 2024
1 parent 7be9940 commit e49ecda
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions databox/indexer/src/databox/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import {lockPromise} from '../lib/promise';
import {getConfig, getStrict} from '../configLoader';
import {Logger} from 'winston';
import {createHttpClient} from '../lib/axios';
import {configureClientCredentialsGrantType, OAuthClient} from '@alchemy/auth';
import {configureClientCredentialsGrantType, KeycloakUserInfoResponse, OAuthClient} from '@alchemy/auth';
import {MemoryStorage} from '@alchemy/storage';

function createApiClient(
Expand All @@ -20,7 +20,7 @@ function createApiClient(
verifySSL: boolean,
scope?: string
) {
const oauthClient = new OAuthClient({
const oauthClient = new OAuthClient<KeycloakUserInfoResponse>({
clientId,
clientSecret,
scope,
Expand Down Expand Up @@ -57,7 +57,7 @@ const collectionKeyMap: Record<string, string> = {};

export class DataboxClient {
private readonly client: AxiosInstance;
private readonly oauthClient: OAuthClient;
private readonly oauthClient: OAuthClient<KeycloakUserInfoResponse>;
private readonly logger: Logger;
private readonly ownerId: string;

Expand Down

0 comments on commit e49ecda

Please sign in to comment.