Alterando grant type para string

This commit is contained in:
Leandro Costa 2023-01-26 23:05:28 -03:00
parent 402374f767
commit 05b2091b0a

View file

@ -15,7 +15,7 @@ export interface LhispOauthClientConstructorParams {
authHeaderName?: string;
tokenHeaderName?: string;
headers?: Headers;
grantType?: GrantType;
grantType?: string;
authContentType?: ContentType;
sendAuthCredentialsOnRequestBody?: boolean;
debug?: boolean;
@ -34,16 +34,12 @@ export interface AccessToken {
created_at?: number;
}
export enum GrantType {
CLIENT_CREDENTIALS='client_credentials',
}
export enum ContentType {
APPLICATION_JSON='application/json',
APPLICATION_X_WWW_FORM_URLENCODED='application/x-www-form-urlencoded',
}
export const defaultGrantType = GrantType.CLIENT_CREDENTIALS;
export const defaultGrantType = 'client_credentials';
export const defaultAuthContentType = ContentType.APPLICATION_JSON;
export const defaultAuthHeaderName = 'Authorization';
export const defaultTokenHeaderName = 'Authorization';