<script type="text/javascript" src="https://example.onlyoffice.com/static/scripts/sdk/1.0.0/api.js"></script>
<script>
const config = {
"mode": "editor",
"width": "100%",
"height": "700px",
"frameId": "ds-frame",
"init": true,
"id": 379247,
"requestToken": "SHBybXZiSDFwU3RFYTROSjdpVGJpT2IvZ24vTkFiY2VhdGFCbjlzVCtzND0_ImIwZDQ1MzU5LTIyMmYtNGZhYS05ZmRmLWY1Yzk4Y2NhZjNhMiI"
}
var docSpace = DocSpace.SDK
docSpace.initEditor({config});
var hash= docSpace.getHashSettings();D
var pass=docSpace.createHash(‘pass’, hash);
var login=docSpace.login(‘email’, pass);
console.log(login)
<div id="ds-frame"></div>