@monerium/sdk 2.6.1 → 2.6.3

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.
Files changed (3) hide show
  1. package/CHANGELOG.md +17 -0
  2. package/README.md +11 -2
  3. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -1,5 +1,22 @@
1
1
  # Changelog
2
2
 
3
+ ## [2.6.3](https://github.com/monerium/sdk/compare/v2.6.2...v2.6.3) (2023-10-18)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * tests ([6be0014](https://github.com/monerium/sdk/commit/6be00148724942bdca74bbeea961b8b33bcd80f7))
9
+
10
+ ## [2.6.2](https://github.com/monerium/sdk/compare/v2.6.1...v2.6.2) (2023-10-18)
11
+
12
+
13
+ ### Bug Fixes
14
+
15
+ * add missing info from README [no-ci] ([600bda5](https://github.com/monerium/sdk/commit/600bda52f9d8b61aa47222ace5308d3087e674e5))
16
+ * **docs:** add source code link to README ([c2a9294](https://github.com/monerium/sdk/commit/c2a9294f49e60ba9fd9373d94ec6069b6b559fb0))
17
+ * revert changes to action ([36eada9](https://github.com/monerium/sdk/commit/36eada92b89b9bf1de0659f74479d27b58697975))
18
+ * update docs on every push to main ([e0f57e6](https://github.com/monerium/sdk/commit/e0f57e61312a5fce0d02608eed6fc7c5aaba5b09))
19
+
3
20
  ## [2.6.1](https://github.com/monerium/sdk/compare/v2.6.0...v2.6.1) (2023-09-11)
4
21
 
5
22
 
package/README.md CHANGED
@@ -5,6 +5,8 @@ Everything you need to interact with the [Monerium API](https://monerium.dev/api
5
5
  _This package is in development. Please make sure to check if any future updates contain commits
6
6
  that may change the behavior of your application before you upgrade._
7
7
 
8
+ [Source code](https://github.com/monerium/sdk)
9
+
8
10
  [SDK Documentation](https://monerium.github.io/sdk/)
9
11
 
10
12
  [Code coverage](https://monerium.github.io/sdk/coverage)
@@ -37,7 +39,7 @@ networks: `mainnet`, `mainnet`, `mainnet`.
37
39
 
38
40
  ## Getting started
39
41
 
40
- If you are new here, we recommend starting in the [Developer Portal](https://monerium.dev/docs/welcome). There you will more about `client_id`'s and ways of authenticating.
42
+ We recommend starting in the [Developer Portal](https://monerium.dev/docs/welcome). There you will learn more about `client_id`'s and ways of authenticating.
41
43
 
42
44
  ### Import the SDK and initialize a client
43
45
 
@@ -59,6 +61,9 @@ await client.auth({
59
61
 
60
62
  // User is now authenticated, get authentication data
61
63
  await client.getAuthContext()
64
+
65
+ // You can now find your access and refresh token here:
66
+ const { access_token, refresh_token } = client.bearerProfile;
62
67
  ```
63
68
 
64
69
  ### Authenticate using auth flow
@@ -66,7 +71,8 @@ await client.getAuthContext()
66
71
  ```ts
67
72
  // Construct the authFlowUrl for your application and redirect your customer.
68
73
  let authFlowUrl = client.getAuthFlowURI({
69
- client_id: "your_client_authflow_uuid"
74
+ client_id: "your_client_authflow_uuid",
75
+ redirect_uri: "http://your-webpage.com/monerium-integration"
70
76
  // optional automatic wallet selection:
71
77
  network: "mumbai",
72
78
  chain: "polygon",
@@ -93,6 +99,9 @@ await client.auth({
93
99
 
94
100
  // User is now authenticated, get authentication data
95
101
  await client.getAuthContext();
102
+
103
+ // You can now find your access and refresh token here:
104
+ const { access_token, refresh_token } = client.bearerProfile;
96
105
  ```
97
106
 
98
107
  ## Contributing
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@monerium/sdk",
3
- "version": "2.6.1",
3
+ "version": "2.6.3",
4
4
  "description": "Everything you need to interact with the Monerium API - an electronic money issuer.",
5
5
  "license": "MIT",
6
6
  "repository": {