pfp icon indicating copy to clipboard operation
pfp copied to clipboard

No visible feedback provided if sync.authorize() fails

Open palant opened this issue 5 years ago • 0 comments

sync.authorize() can fail if remoteStorage is used as sync storage provider and the user address doesn't resolve using WebFinger. However, we close the pop-up immediately after calling sync.authorize(), so if an error occurs at this stage we cannot show it to the user any more.

I guess that authorization needs to be split into two stages, a preparation stage and actually requesting authorization from the user. We should only close the pop-up if the preparation stage succeeds. For sync storage providers other than remoteStorage the preparation stage can be a no-op, no real failure conditions there it seems.

palant avatar Jun 12 '19 20:06 palant