Fix login loop
When state does not yet contain any collections, object
is undefined so user got redirected back to login page. On subsequent logins it succeeded.
This will all need to change soon when we update to async authsome.
When state does not yet contain any collections, object
is undefined so user got redirected back to login page. On subsequent logins it succeeded.
This will all need to change soon when we update to async authsome.