async fn ensure_provider_auth_dir( req: EnsureProviderAuthDirReq, ) -> Result<EnsureProviderAuthDirResult, String>