My use case is as follows:
1 - A user wants to backup changes (i.e version control) to their work to their Bitbucket Repo
2 - We ask the user to provide us with the necessary credentials and to do this operation on their behalf
3 - We also ask the user for other details like the repository name, branch, etc to which this change needs to be pushed to.
4 - Every time a user does some change and wishes to save the change, we will push those to the configured repo.
My questions - Is the Atlassian Connect framework building an add-on for Bitbucket  the correct approach to do this or should I just go ahead an use the REST API with OAuth?
I tried following the guide  to build a sample add-on but the
addon.authenticate() seems to fail despite providing it with the key from my user account. I get a 401 when it tries to do the JWT auth for the