Skip to content

Commit

Permalink
problem: invalid import
Browse files Browse the repository at this point in the history
  • Loading branch information
splix committed Sep 16, 2024
1 parent 35b698f commit 7baf09b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/web/src/wrapped/AuthClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ import * as auth_rpc from '../generated/AuthServiceClientPb';
import * as auth_pb from "../generated/auth_pb";
import {classFactory} from "./Factory";
import {CredentialsContext} from "../credentials";
import {callSingle} from "@emeraldpay/api-node/lib/channel";

export class AuthClient {
readonly client: auth_rpc.AuthClient;
Expand Down Expand Up @@ -46,7 +45,7 @@ export class AuthClient {

issueToken(req: IssueTokenRequest): Promise<IssuedTokenResponse> {
const request = this.convert.issueTokenRequest(req);
const call = callSingle(this.client.issueToken.bind(this.client), this.convert.issuedTokenResponse);
const call = callPromise(this.client.issueToken.bind(this.client), this.convert.issuedTokenResponse);
return publishToPromise(readOnce(this.channel, call, request, this.retries));
}

Expand Down

0 comments on commit 7baf09b

Please sign in to comment.