@jokio/sdk 0.0.6 → 0.0.8

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 (2) hide show
  1. package/README.md +13 -14
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -9,25 +9,24 @@ Provides tts ai model integrations, realtime p2p communication & crypto encrypti
9
9
 
10
10
  # Examples
11
11
 
12
- ## Auth
12
+ ## Authentication
13
13
 
14
14
  ```ts
15
15
  import { jok } from '@jokio/sdk'
16
16
 
17
17
  // passkeys
18
- const userData = await jok.auth.requestPasskeyLogin(displayName)
19
-
20
- return userData
21
-
22
- // email - request otp code
23
- const isSent = await jok.auth.requestEmailLogin(email)
24
-
25
- return isSent
26
-
27
- // email - complete process
28
- const userData = await jok.auth.completeEmailLogin(email, otpCode)
29
-
30
- return userData
18
+ {
19
+ const userData = await jok.auth.requestPasskeyLogin(displayName)
20
+ }
21
+
22
+ // email
23
+ {
24
+ // 1. request otp code
25
+ const isSent = await jok.auth.requestEmailLogin(email)
26
+
27
+ // 2. complete process
28
+ const userData = await jok.auth.completeEmailLogin(email, otpCode)
29
+ }
31
30
  ```
32
31
 
33
32
  ## Text to speech (TTS)
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@jokio/sdk",
3
3
  "description": "pure js/ts sdk for building decentralised localfirst web apps. Provides tts ai model integrations, realtime p2p communication & crypto encryptions.",
4
- "version": "0.0.6",
4
+ "version": "0.0.8",
5
5
  "license": "MIT",
6
6
  "main": "dist/jokio.sdk.umd.js",
7
7
  "keywords": [