@kiminix/tp-client 2.38.0 → 2.39.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README
CHANGED
|
@@ -6,8 +6,7 @@
|
|
|
6
6
|
- push the changes: `git push origin master --tags`
|
|
7
7
|
- publish the package to npmjs: `npm publish --access public`
|
|
8
8
|
|
|
9
|
-
|
|
10
|
-
https://www.npmjs.com/settings/kiminix/tokens/granular-access-tokens/new
|
|
9
|
+
|
|
11
10
|
## local dev & test
|
|
12
11
|
- run `npm run build`
|
|
13
12
|
- then in the project you want to use this package run
|
|
@@ -18,3 +17,20 @@ https://www.npmjs.com/settings/kiminix/tokens/granular-access-tokens/new
|
|
|
18
17
|
`npm i @kiminix/tp-client`
|
|
19
18
|
|
|
20
19
|
|
|
20
|
+
|
|
21
|
+
## 🚀 Publishing with 2FA Bypass (Granular Access Token) if expired (every 90 days)
|
|
22
|
+
|
|
23
|
+
If you are publishing via a CI/CD pipeline or need to bypass two-factor authentication, follow these steps to configure a granular access token:
|
|
24
|
+
|
|
25
|
+
1. **Generate the Token on npm:**
|
|
26
|
+
* Go to [npmjs.com](https://www.npmjs.com/) → **Access Tokens**.
|
|
27
|
+
* Click **Generate New Token** → Select **Granular Access Token**.
|
|
28
|
+
* Check the box **"Bypass two-factor authentication"**.
|
|
29
|
+
* Under permissions, grant **Read and write** access specifically for the `@kiminix/tp-client` package.
|
|
30
|
+
|
|
31
|
+
2. **Configure the Token Locally:**
|
|
32
|
+
Run the following command in your terminal (replace `<your_token>` with the generated token):
|
|
33
|
+
|
|
34
|
+
```bash
|
|
35
|
+
npm config set //registry.npmjs.org/:_authToken <your_token>
|
|
36
|
+
|
|
@@ -38,8 +38,9 @@ import axios from "axios";
|
|
|
38
38
|
import { base } from "../../../constants";
|
|
39
39
|
import { RequestUtils } from "../../../utils/request-utils";
|
|
40
40
|
/**
|
|
41
|
-
*
|
|
41
|
+
* subscribe business
|
|
42
42
|
*
|
|
43
|
+
* @throws internal_error, code_not_found, code_expired, invalid_email_format, invalid_phone_format, weak_password
|
|
43
44
|
* @param token
|
|
44
45
|
* @param id
|
|
45
46
|
* @param status
|