How to access Docspace through Javascript SDK

I’m trying to access my DocSpace through Javascript SDK in a web page.
This is my code

<script> src="https://.../static/scripts/api.js"</script>
<iframe id="ds-frame"></iframe>
<script>
docSpace=DocSpace.SDK
docSpace.login ("mymail","mypassword")
var ds=docSpace.initFrame();
</script>

…and I am still asked to enter my mail and password despite of the login method.

Any help ?

Manty thanks and apologize may english

Hi @dbos

So, are you entering a password?
Or are you using a password hash?

docSpace.login(email, passwordHash);

  1. getHashSettings
  2. createHash
  3. login

Yes, I tried that. But (after docSpace=DocSpace.SDK) docSpace.getHashSettings just returns an empty array. And so does docSpace.createHash, of course.

@dbos
We’ll need to check this behavior.
Please clarify which version of DocSpace you are using, OS and the installation method. (exe/ Docker/ DEB/RPM packages)

I assume you used instructions from our Help Center.

Thank you for your answer.

I am on free Startup Cloud Docspace.

No more answer ?

Hi @dbos
We will check the behavior for getHashSettings.

As soon as I receive information or if we have additional questions, I will get back to you.

Ok, thanks.