@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 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
- // passkeys
17
+ // guest
18
18
  {
19
- // login with existing keys
20
- const userData = await jok.auth.requestPasskeyLogin()
19
+ const userData = await jok.auth.guestLogin()
21
20
  }
22
21
 
22
+ // passkeys
23
23
  {
24
- // registration / login
25
- const userData = await jok.auth.requestPasskeyLogin(displayName)
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