There are data-sharing problems with this page currently being on Backbone while other pages in the flow are in React, causing a double sign-in for all 'Set password' flows, plus the inability to sign into Sync and maintain CWTS choices for desktop oauth
We want to move completely over from Backbone to React
This commit:
Creates 'post_verify/third_party_auth/set_password' page in React with container component
Sends web channel messages up to Sync after password create success
Shares form logic with Signup, includes useSyncEngine hook for DRYness
Changes InlineRecoveryKeySetup to check local storage instead of location state, which prevents needing to prop drill as users should always be signed in and these values available in local storage on this page
Returns authPW and unwrapBKey from create password in auth-client
closes FXA-6651
TODO: check that this works rebased on Vijay's branch, unit tests for SetPassword + SetPassword container
I propose creating a follow up issue for moving some tests out from Signup/Signup container and into FormSetupAccount/useSyncEngines and creating stories for FormSetupAccount then, the diff is already large and we do have coverage for these, they're just not in their refactored components.
Because:
This commit:
closes FXA-6651
TODO: check that this works rebased on Vijay's branch, unit tests for SetPassword + SetPassword container
I propose creating a follow up issue for moving some tests out from Signup/Signup container and into FormSetupAccount/useSyncEngines and creating stories for FormSetupAccount then, the diff is already large and we do have coverage for these, they're just not in their refactored components.