Skip to content

Instantly share code, notes, and snippets.

@pinkeshdarji
Created June 25, 2021 07:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pinkeshdarji/d584d5265050184dfd5257426198fc62 to your computer and use it in GitHub Desktop.
Save pinkeshdarji/d584d5265050184dfd5257426198fc62 to your computer and use it in GitHub Desktop.
await AppE2EE().generateKeys();
Map<String, dynamic> publicKeyJwk =
await AppE2EE().keyPair.publicKey.exportJsonWebKey();
--------------------------------------
await client.connectUser(
User(
id: 'Pinkesh',
extraData: {
'image': 'https://picsum.photos/id/1025/200/300',
'publicKey': publicKeyJwk,
},
),
client.devToken('Pinkesh'),
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment