@jokio/sdk 0.1.5 → 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 +15 -5
- package/dist/jokio.sdk.umd.js +10 -10
- package/package-lock.json +1062 -0
- package/package.json +1 -1
- package/src/auth.service.ts +21 -8
- package/src/nats.service.ts +7 -5
- package/test/index.html +1 -1
- package/dist/auth.service.d.ts +0 -21
- package/dist/common/playAudioFromBuffer.d.ts +0 -1
- package/dist/crypto.service.d.ts +0 -9
- package/dist/index.d.ts +0 -18
- package/dist/index.html +0 -106
- package/dist/jokio.sdk.es.js +0 -8526
- package/dist/nats.service.d.ts +0 -45
- package/dist/tts.service.d.ts +0 -13
- package/dist/voicevoxTts.d.ts +0 -11
package/README.md
CHANGED
|
@@ -14,15 +14,25 @@ Provides tts ai model integrations, realtime p2p communication & crypto encrypti
|
|
|
14
14
|
```ts
|
|
15
15
|
import { jok } from '@jokio/sdk'
|
|
16
16
|
|
|
17
|
-
//
|
|
17
|
+
// guest
|
|
18
18
|
{
|
|
19
|
-
|
|
20
|
-
const userData = await jok.auth.requestPasskeyLogin()
|
|
19
|
+
const userData = await jok.auth.guestLogin()
|
|
21
20
|
}
|
|
22
21
|
|
|
22
|
+
// passkeys
|
|
23
23
|
{
|
|
24
|
-
//
|
|
25
|
-
|
|
24
|
+
// login with existing keys
|
|
25
|
+
await jok.auth.requestPasskeyLogin()
|
|
26
|
+
|
|
27
|
+
// login attempt with a specific displayName
|
|
28
|
+
// acts like previous example if displayName not found
|
|
29
|
+
await jok.auth.requestPasskeyLogin({ displayName })
|
|
30
|
+
|
|
31
|
+
// registering a new passkey
|
|
32
|
+
await jok.auth.requestPasskeyLogin({
|
|
33
|
+
displayName,
|
|
34
|
+
isRegistration: true,
|
|
35
|
+
})
|
|
26
36
|
}
|
|
27
37
|
|
|
28
38
|
// email
|