diff --git a/.github/workflows/release-core.yml b/.github/workflows/release-core.yml
index 8a121520a..e6c32694e 100644
--- a/.github/workflows/release-core.yml
+++ b/.github/workflows/release-core.yml
@@ -23,24 +23,24 @@ jobs:
uses: MarcoIeni/release-plz-action@v0.5
env:
GITHUB_TOKEN: ${{ secrets.RELEASE_GITHUB_TOKEN }}
- CARGO_REGISTRY_TOKEN: ${{ CARGO_REGISTRY_TOKEN }}
+ CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
sync-cargo-docs:
name: Sync cargo docs to gh-pages
runs-on: ubuntu-latest
steps:
- - uses: actions/checkout@v4
- - uses: actions/setup-python@v4
- with:
- python-version: '3.10'
- - uses: actions-rs/toolchain@v1
- with:
- toolchain: stable
- override: true
- - name: Sync Docs
- run: |
- cargo doc
- pip install ghp-import
- echo '' > target/doc/index.html
- ghp-import -n target/doc
- git push -qf https://github.com/collinsmuriuki/mpesa-rust.git gh-pages
+ - uses: actions/checkout@v4
+ - uses: actions/setup-python@v4
+ with:
+ python-version: "3.10"
+ - uses: actions-rs/toolchain@v1
+ with:
+ toolchain: stable
+ override: true
+ - name: Sync Docs
+ run: |
+ cargo doc
+ pip install ghp-import
+ echo '' > target/doc/index.html
+ ghp-import -n target/doc
+ git push -qf https://github.com/collinsmuriuki/mpesa-rust.git gh-pages
diff --git a/.gitignore b/.gitignore
index 56c16255d..92bc9c15d 100644
--- a/.gitignore
+++ b/.gitignore
@@ -5,3 +5,4 @@ Cargo.lock
.DS_Store
.vscode
+act.sh
\ No newline at end of file
diff --git a/src/client.rs b/src/client.rs
index 5b804b635..35216db81 100644
--- a/src/client.rs
+++ b/src/client.rs
@@ -1,4 +1,5 @@
-use std::cell::RefCell;
+use std::borrow::BorrowMut;
+use std::sync::{Arc, RwLock};
use std::time::Duration;
use cached::Cached;
@@ -31,7 +32,7 @@ const CARGO_PACKAGE_VERSION: &str = env!("CARGO_PKG_VERSION");
pub struct Mpesa {
consumer_key: String,
consumer_secret: Secret,
- initiator_password: RefCell