utils

Utilities

We understand that migrating is hard :). For this purpose the library offers some functions to help you easily integrate daraja-kit to your app while still enjoying the stability of your existing code.

generateAccessToken

The lib offers a generateAccessToken function that helps give you accurate non-expired access tokens with all the advantages of daraja-kit built in!

generatePassword

The generatePassword function can be used to get passwords to include in your daraja api requests

generateTimestamp

The generateTimestamp function can be used to get accurate timestamps for using alongside your daraja api calls.