-
Notifications
You must be signed in to change notification settings - Fork 6
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
Factorkey validation and rehydration error #132
base: master
Are you sure you want to change the base?
Conversation
'SHARE_DELETED' on getMetadata when using manualSync mode
Can you elaborate the issue ? |
src/mpcCoreKit.ts
Outdated
const hashedFactorKey = getHashedPrivateKey(this.state.oAuthKey, this.options.hashedFactorNonce); | ||
if ((await this.checkIfFactorKeyValid(hashedFactorKey)) && !this.options.disableHashedFactorKey) { | ||
const isHashedFactorKeyValid = this.checkIfFactorKeyValid(hashedFactorKey); |
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.
checkIfFactorKeyValid is async function
Hi, we don't necessarily need to throw rehydration error as when rehydration failed, all the later steps will also fail (factor login, create factor, etc...). Sample case on rehydration failure
|
This PR includes -
getFactorKeyMetadata
and metadata validation