HomePhabricator
Diffusion Comm 008d75b22080

[native][lib] update useDeleteDiscardedIdentityAccount to throw

Description

[native][lib] update useDeleteDiscardedIdentityAccount to throw

Summary:
we need this hook to throw so that we can catch exceptions in useRegistrationServerCall and alert the user if their account was successfully created but login failed.

Depends on D12335

Test Plan:
applied this patch: https://gist.github.com/vdhanan/0a8bd816ab34cd2df3fdb46a73087f0b

then confirmed that DELETE_ACCOUNT_SUCCESS was dispatched and the Alert was displayed (see screenshot)

Simulator Screenshot - iPhone 15 Pro Max - 2024-06-07 at 12.06.10.png (2×1 px, 456 KB)

Reviewers: ashoat

Reviewed By: ashoat

Subscribers: tomek

Differential Revision: https://phab.comm.dev/D12353

Details

Provenance
varunAuthored on Jun 7 2024, 9:02 AM
Reviewer
ashoat
Differential Revision
D12353: [native][lib] update useDeleteDiscardedIdentityAccount to throw
Parents
rCOMMd08a0d0edfbb: [identity] reintroduce check to make sure only wallet users can call…
Branches
Unknown
Tags
Unknown