feature: add secured message
- encrypt/decrypt every message (require ^0.0.2) Signed-off-by: pakintada@gmail.com <Pakin>
This commit is contained in:
parent
4ca8b3b270
commit
2a0841a798
14 changed files with 314 additions and 147 deletions
|
|
@ -97,8 +97,8 @@
|
|||
websocketConnectedForUid = currentUser.uid;
|
||||
console.log('connect ws after auth ready');
|
||||
|
||||
void currentUser.getIdToken().then((idToken) => {
|
||||
connectToWebsocket(idToken);
|
||||
void currentUser.getIdToken(true).then(async (idToken) => {
|
||||
await connectToWebsocket(idToken);
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -58,9 +58,9 @@
|
|||
}
|
||||
});
|
||||
|
||||
function sendGetRecipeVersions(country: string) {
|
||||
async function sendGetRecipeVersions(country: string) {
|
||||
version_list = [];
|
||||
sendMessage({
|
||||
await sendMessage({
|
||||
type: 'recipe_versions',
|
||||
payload: {
|
||||
auth: '',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue