1.0.15 • Published 2 years ago

mpesa-auth-token-generator v1.0.15

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years ago

This Nodejs module generates bearer auth token for both production and sandbox environments allowing users who need to make use of the mpesa api to quickly generator their bearer token without too much hassle setting up manually.

Mpesa Requires an Auth header with every call to the api with a value of Bearer Token;

The token is generated by creating a base64string from your consumer key and consumer secret and sending it to the endpoint that returns your bearer token.

NB: Bearer tokens for sandbox environment expire after certain period of time so remeber to run this module again once it expires.

There is a CLI client available on github https://github.com/theQuailthatMarine2017/NodeJS-MPESA-Bearer-Token-Generator--CLI which allows you to pass environment, consumerKey & consumerSecret as arguments when running the application and using this package to generate the token.

Just git clone the above repo, install dependancies, pass the arguments and run the node app.

NB: PLEASE FOLLOW INSTRUCTIONS ON GITHUB LINK FOR MORE DETAILS.

Below Screenshot of Expected Output:

alt text

Just clone the above repository, run npm i to install all packages/ dependancies and pass arguments in order after npm start and run the program!

*** HAPPY CODING!!!!

1.0.15

2 years ago

1.0.14

2 years ago

1.0.13

2 years ago

1.0.12

2 years ago

1.0.11

2 years ago

1.0.10

2 years ago

1.0.9

2 years ago

1.0.8

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago