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
Name | Type |
---|---|
username | string |
password | string |
endpoint | string |
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
>