Utilities
This purpose exports utility functions that can allow you to avoid the common daraja API pitfalls and reduce complexity.
Generate Access Token
The lib offers a generateAccessToken
function that helps give you accurate non-expired access tokens with all the advantages of daraja-kit built in!
Generate password
The generatePassword
function can be used to get passwords to include in your daraja api requests
Generate timestamp
The generateTimestamp
function can be used to get accurate timestamps for using alongside your daraja api calls.