Authentication failed for bitbucket

When you try to use the account password to checkout out code from Bitbucket, you might get the error “failed to auth”.

Here is a solution:

  1. Visit App passwords on the setting page.
  2. Click on the Create app password button.
  3. Set the permissions for the app password.
  4. Click on Create button, a new app password will be created. You will not be able to view this password again once you close this window, so be sure to record it.

After a new App pasword was added, you can use it to push/fetch code from Bitbucket.