docs: fix getting started example in npm package

This commit is contained in:
nazeh
2024-07-29 15:28:20 +03:00
parent ccf4c00ca7
commit 2493b0ef5a

View File

@@ -24,11 +24,11 @@ let homeserver = PublicKey.from("8pinxxgqs41n4aididenw5apqp1urfmzdztr8jt4abrkdn4
await client.signup(keypair, homeserver)
const publicKey = keypair.public_key();
// Verify that you are signed in.
const session = await client.session(publicKey)
const publicKey = keypair.public_key();
const body = Buffer.from(JSON.stringify({ foo: 'bar' }))
// PUT public data, by authorized client