Auto-login set on Power BI HTML static applications can be achieved with the use of the Power BI OAuth authentication flow with Azure Active Directory (AAD). This is basically how it works:
Authentication through Azure AD: Grant everyone in your organization access to your Azure AD for seamless sign-ins. Register your static application as an Azure AD application.
JavaScript for Power BI: Use the Power BI JavaScript API to embed reports. To obtain a token for embedding, you will need to log in to Azure AD.
SSO: Generally, if users are already signed in to their Microsoft accounts or they belong to a certain organization, this is a single sign-on solution. It authenticates users without entering credentials.
Token management: Apply secure token management sources (e.g., token caching) to avoid re-authentication. Ensure tokens are stored and managed securely.
By setting this procedure up, you will provide a secure, seamless experience for users without compromising their security.