api: client: fix login/logout with creds store Upstream-commit: 6dcb14ce05e168c4942fee2ee44a280fd1316590 Component: engine