@truly-you/trulyyou-web-sdk 0.1.6 → 0.1.7
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.md +57 -0
- package/package.json +2 -2
package/README.md
ADDED
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
# TrulyYou Web SDK
|
|
2
|
+
|
|
3
|
+
Web SDK for secure authentication and payload signing with TrulyYou.
|
|
4
|
+
|
|
5
|
+
## Installation
|
|
6
|
+
|
|
7
|
+
### Via NPM
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
npm install @truly-you/trulyyou-web-sdk
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
```javascript
|
|
14
|
+
import { TrulyYouSDK } from '@truly-you/trulyyou-web-sdk';
|
|
15
|
+
|
|
16
|
+
const sdk = new TrulyYouSDK({
|
|
17
|
+
apiUrl: 'YOUR_API_URL',
|
|
18
|
+
// ... other config
|
|
19
|
+
});
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
### Via CDN (unpkg)
|
|
23
|
+
|
|
24
|
+
```html
|
|
25
|
+
<script src="https://unpkg.com/@truly-you/trulyyou-web-sdk@latest/dist/index.umd.js"></script>
|
|
26
|
+
<script>
|
|
27
|
+
const sdk = new TrulyYouSDK.TrulyYouSDK({
|
|
28
|
+
apiUrl: 'YOUR_API_URL',
|
|
29
|
+
// ... other config
|
|
30
|
+
});
|
|
31
|
+
</script>
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
Or specify a specific version:
|
|
35
|
+
|
|
36
|
+
```html
|
|
37
|
+
<script src="https://unpkg.com/@truly-you/trulyyou-web-sdk@0.1.6/dist/index.umd.js"></script>
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
## Usage
|
|
41
|
+
|
|
42
|
+
Once initialized, you can use the SDK for authentication and payload signing:
|
|
43
|
+
|
|
44
|
+
```javascript
|
|
45
|
+
// Initialize SDK
|
|
46
|
+
const sdk = new TrulyYouSDK({
|
|
47
|
+
apiUrl: 'https://your-api-url.com'
|
|
48
|
+
});
|
|
49
|
+
|
|
50
|
+
// Use SDK methods
|
|
51
|
+
// ... (add specific method examples based on your SDK implementation)
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
## License
|
|
55
|
+
|
|
56
|
+
MIT
|
|
57
|
+
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@truly-you/trulyyou-web-sdk",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.7",
|
|
4
4
|
"description": "TrulyYou Web SDK for secure authentication and payload signing",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.esm.js",
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"types": "dist/index.d.ts",
|
|
10
10
|
"private": false,
|
|
11
11
|
"publishConfig": {
|
|
12
|
-
"access": "
|
|
12
|
+
"access": "public"
|
|
13
13
|
},
|
|
14
14
|
"exports": {
|
|
15
15
|
".": {
|