Persistent User Login

Hi guys,
discovered an error in the JS-SDK: when trying to permanently log my user in (using Facebook) the “stayLoggedIn” flagged is set to “true” in local storage, regardless if it’s successfull.
Problem: If you want to get the current user and the “stayLoggedIn” flag is set, the SDK supposes that the “current-user-id” is also set (which is not the case with an unsuccessful login), hence sending a user findById with an “undefined” userId, which throws an error.
Please fix :slight_smile:
thanks,
Martin

Hi Martin,

thank you for noticing this issue! It will be fixed in next version. :slight_smile:

Regards,
Stanislav