PurpleSoftSrl / azure_devops_app

Azure DevOps Mobile App
https://www.azdevops.app
MIT License
87 stars 8 forks source link

Clicking Settings (iOS) gives UnAuthorized Error #5

Closed akselsoft closed 1 year ago

akselsoft commented 1 year ago

Steps:

  1. Logged into my Project via PAT. Everything looks great.
  2. Click on Settings (Wrench)

Observed: Error Unauthorized. Tap to Retry

Expected: Unsure. What should I be able to do?

IMG_F082E76173B8-1

sstasi95 commented 1 year ago

When you navigate to the settings page, an api request is made to get the list of your organizations (to allow the user to switch between them). If you get unauthorized, probably your PAT doesn't have 'All organizations' option enabled. If this is the case, you can try to create a new PAT with that option enabled.

Anyway, we should allow the user to view the page even if he gets a 401.

This is the api documentation, and this is the code