• Ensures a non-expired ID token is available before calling the credentials API. Refreshes the session when the stored ID token is expired or undecodable.

    Returns Promise<void>

    When the ID token is missing or session refresh fails.