fix teams support

teams did not work because it assumed the username to connect was the team name.
the team name is the 'owner' of the repo but the user, if they are part of the team should have access