Skip to main content

Class: UsernamePasswordCredentials

@cybercryptio/d1-client-nodejs / Exports / UsernamePasswordCredentials

Class: UsernamePasswordCredentials

Implements

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new UsernamePasswordCredentials(username, password, endpoint, certPath?)

Parameters

NameType
usernamestring
passwordstring
endpointstring
certPath?string

Properties

#accessToken

Private #accessToken: string = ''


#expirationTime

Private #expirationTime: Date


authnClient

Private Readonly authnClient: Authn


grpcClient

Private grpcClient: Client


MS_PER_MINUTE

Static Private MS_PER_MINUTE: number

Methods

getToken

getToken(): Promise<string>

Returns

Promise<string>

Implementation of

ICredentials.getToken