Open lwin-kyaw opened 7 months ago
Can you elaborate the issue ? why the need to throw on rehydrate failed?
Can you elaborate the issue ? why the need to throw on rehydrate failed?
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...). However throwing error on rehydration failed, can catch some errors in early stage and prevent users proceeding to other steps. Anyway, we have logged out the error message when there's an error during rehydration, so, I think it would be better if we could throw the error also. It will also help us to write better test cases.
manualSync:true
factorKey1
) and don't commit the changesfactorKey1
from sessionManager)factorKey1
, but since we don't commit changes in first corekit, factor metadata is not available, resulting in rehydration failure
This PR includes -
getFactorKeyMetadata
and metadata validation