diff options
author | Sebastian <sebasjm@gmail.com> | 2024-04-15 12:01:16 -0300 |
---|---|---|
committer | Sebastian <sebasjm@gmail.com> | 2024-04-15 12:01:16 -0300 |
commit | a7c8f0f3edd738a59d719105cda3aa8821886b90 (patch) | |
tree | acb402075b7b0c0788ec0c5fbecfb58ece64357d /packages/taler-util/src/http-client/authentication.ts | |
parent | 56a6c92c814547fcf8af25f183f6ecd75fbbfbb9 (diff) | |
download | wallet-core-a7c8f0f3edd738a59d719105cda3aa8821886b90.tar.xz |
fix #8604
Diffstat (limited to 'packages/taler-util/src/http-client/authentication.ts')
-rw-r--r-- | packages/taler-util/src/http-client/authentication.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/taler-util/src/http-client/authentication.ts b/packages/taler-util/src/http-client/authentication.ts index b8affee7b..8897a2fa0 100644 --- a/packages/taler-util/src/http-client/authentication.ts +++ b/packages/taler-util/src/http-client/authentication.ts @@ -92,14 +92,14 @@ export class TalerAuthenticationHttpClient { * @returns */ async createAccessTokenBearer( - token: string, + token: AccessToken, body: TalerAuthentication.TokenRequest, ) { const url = new URL(`token`, this.baseUrl); const resp = await this.httpLib.fetch(url.href, { method: "POST", headers: { - Authorization: makeBearerTokenAuthHeader(token as AccessToken), + Authorization: makeBearerTokenAuthHeader(token), }, body, }); |