Toniq-Labs / stoic-identity

Identity for DFINITY's IC HttpAgent (to connect to a Stoic wallet via Stoic Connect)
MIT License
27 stars 16 forks source link

fix : reject promises instead of resolving to false #9

Open seb-icp opened 2 years ago

seb-icp commented 2 years ago

The two asynchronous methods .connect() & .load() when catching an error should reject the promise instead of resolving to false (as it is currently).

This allows for the possibility of catching those rejections & handling those issues properly to offers a better UX for the set of users that have issues login in (Brave, no cookies, no cross site tracking...).