From 241726ed2fbef2e9b1b3baffb4148aa4637eb618 Mon Sep 17 00:00:00 2001 From: Leandro Costa Date: Thu, 26 Jan 2023 22:21:04 -0300 Subject: [PATCH] =?UTF-8?q?Definindo=20valor=20padrao=20do=20Nome=20do=20C?= =?UTF-8?q?abe=C3=A7alho=20de=20Autenticacao=20nas=20Requests?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/lhisp-oauth-client.t.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/lhisp-oauth-client.t.ts b/src/lhisp-oauth-client.t.ts index 6fc8c2c..08e67ff 100644 --- a/src/lhisp-oauth-client.t.ts +++ b/src/lhisp-oauth-client.t.ts @@ -13,6 +13,7 @@ export interface LhispOauthClientConstructorParams { senhaCertificado?: string; authScope?: string; authHeaderName?: string; + tokenHeaderName?: string; headers?: Headers; grantType?: GrantType; authContentType?: ContentType; @@ -43,4 +44,5 @@ export enum ContentType { export const defaultGrantType = GrantType.CLIENT_CREDENTIALS; export const defaultAuthContentType = ContentType.APPLICATION_JSON; -export const defaultAuthHeaderName = 'Authorization'; \ No newline at end of file +export const defaultAuthHeaderName = 'Authorization'; +export const defaultTokenHeaderName = 'Authorization'; \ No newline at end of file