So I created a private repository within an organization and I am having troubles cloning or pushing it it(I can set public and clone but after moving it back to private the push back fails)
I am the sole owner within the repository so I should have no issues with access.
Generally other users who experience the issues are due to an incorrect token being used and as a result that token does not have access to your repository.
Check your token value is correct (you can use any authenticated. Rest api call to do this).
If you are using a Git client and your credentials are cached local Credential Manager they cna be out of date also. So deleting thta entry, will allow you to re-enter on next git clone.
If the above does not solve for you is there any errors or other information you can provide