How to make auto login in nextcloud iframe integration

We want integrate nextcloud’s iframe in our website and auto login in nextcloud server. For this we are using following iframe .

But it is not working . it show me error in console as Below -1

en_GB.js:1 Uncaught ReferenceError: OC is not defined
at en_GB.js:1
previewplugin.js:122 Uncaught ReferenceError: OCA is not defined
at previewplugin.js:122
viewer.js:15 Uncaught ReferenceError: OC is not defined
at viewer.js:15
fileinfo.js:147 Uncaught ReferenceError: OC is not defined
at fileinfo.js:147
client.js:839 Uncaught ReferenceError: OC is not defined
at client.js:839
contactsmenu.js:537 Uncaught ReferenceError: OC is not defined

Expected behaviour

User should auto login in nextcloud server’s iframe

Actual behaviour

User does not auto login in nextcloud with this approach . instead of it show me login page of nextcloud server .

Please anyone help me how can i integrate auto login in nextcloud using iframe . Thanks in advance .

What do you need this for? Perhaps it makes sense to contact Nextcloud GmbH for help with this… Note that paid support also answers questions about integration and such :wink: