dfinity / cancan

A scalable video sharing service.
http://sdk.dfinity.org
Apache License 2.0
335 stars 65 forks source link

Fix / not redirecting to /sign-in #28

Closed gobengo closed 3 years ago

gobengo commented 3 years ago

useAuth() hook wasnt return isAuthReady when end-user is logged out. This was because of how ActorController changed isReady without a way of awaiting that change. Now ActorController.actor is a Promise (and the promise includes fetchRootKey() if appropriate).

Motivation: