Hi, I am trying to implement login api from https://github.com/Alfresco/alfresco-js-api in IONIC project and getting this error.
Here is the .ts file for the reference
Solved! Go to Solution.
alfrescoApi: AlfrescoApi;
this.alfrescoApi = <AlfrescoApi> new alfrescoApi({
provider: 'YOUR_CONFIG',
hostEcm: 'YOUR_CONFIG',
hostBpm: 'YOUR_CONFIG',
authType: 'YOUR_CONFIG',
contextRootBpm: 'YOUR_CONFIG',
contextRoot: 'YOUR_CONFIG',
disableCsrf: 'YOUR_CONFIG',
oauth2: 'YOUR_CONFIG'
});
Can you try Like the code above?
We use it in ADF like that:
alfrescoApi: AlfrescoApi;
this.alfrescoApi = <AlfrescoApi> new alfrescoApi({
provider: 'YOUR_CONFIG',
hostEcm: 'YOUR_CONFIG',
hostBpm: 'YOUR_CONFIG',
authType: 'YOUR_CONFIG',
contextRootBpm: 'YOUR_CONFIG',
contextRoot: 'YOUR_CONFIG',
disableCsrf: 'YOUR_CONFIG',
oauth2: 'YOUR_CONFIG'
});
Can you try Like the code above?
We use it in ADF like that:
Discussions, help and advice about the Alfresco Development Framework.
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.