Hi is there a way to embed credentials in your add-in and auto sign in to Portal - this is just to get around users getting bogged down with too many usernames and passwords - we are trying to make a seamless, easy experience for end users.
Hi Vidar, there are various options for caching credentials with Pro but not programmatically via the API. Consult the Pro help for more info, but generally speaking, it revolves around the "Sign me in automatically" checkbox on the Pro Sign in popup.
https://pro.arcgis.com/en/pro-app/latest/help/projects/sign-in-to-your-organization.htm
Also, I believe if the portal is configured for IWA, sign in is automatic regardless (assuming user login and portal login match).