-
-
Notifications
You must be signed in to change notification settings - Fork 606
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Passphrase Support for e2e backups #786
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM assuming the documentation also gets updated
src/client.js
Outdated
* @param {string} password Passphrase string that can be entered by the user | ||
* when restoring the backup as an alternative to entering the recovery key. | ||
* Optional. | ||
* | ||
* @returns {object} Object that can be passed to createKeyBackupVersion and |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this now returns a promise, not an object.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm, I was assuming the promise was implicit for async functions, but the convention seem to be to put it explicitly.
limitations under the License. | ||
*/ | ||
|
||
export function randomString(len) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fwiw there's libraries for this if we want to avoid maintaining this sort of thing. https://www.npmjs.com/package/random-string for example
Implements matrix-org/matrix-spec-proposals#1703