'Problem to access the private library that I need, using heroku deploy

Currently I'm trying to deploy a flutter web project on heroku that using a private library on azure devops. I access this private library using SSH key from my PC. The problem is when I try to access the library from dyno, that is not have any ssh key previously registered.

What I want to know is: How can I access my private library from the project that I'm deploying?

Running "flutter pub get" in build_7d8ec7f9...                  
Git error. Command: `git clone --mirror ssh://[email protected]/v3/example/project/sdk /app/.pub-cache/git/cache/sdk-b3499e8736208204591e9ce10402ffa3d77b19aa`
stdout: 
stderr: Cloning into bare repository '/app/.pub-cache/git/cache/sdk-b3499e8736208204591e9ce10402ffa3d77b19aa'...
Host key verification failed.
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
exit code: 128
       pub get failed (server unavailable) -- attempting retry 1 in 1 second...


Solution 1:[1]

The problem was solved giving up on the SSH. Now I'm using the generated personal tokens and using in pubpec like that:

ur_private_library:
    git:
      url: https://<token-name>:<token-password>@dev.azure.com/<your-repo-url>

See this link to learn how to create personal token acess

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Katekko