It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

OAuth2 Error: Invalid aud


I am developing a connect-app for Confluence cloud using the atlassian-connect-express framework. Since yesterday I am facing the issue that my local add-on server is giving me following error when trying to use the 



{ error: 'invalid_grant',
'Invalid aud: [], expected: or' }

I figured out, that the problem is in the atlassian-oauth2-js library ( which released an update 5 days ago with the new 


instead of 


as it was when it was still working for me.

Unfortunately, atlassian-connect-express library always imports the latest released version of atlassian-oauth2.


Does somebody know why my add-on is not able to request an access token from the new server URL? Do I have to define the authentication server somewhere else in my code?


Many thanks,


1 answer

0 votes

Hello Belinda,

Thank you for contacting us about this.

I'm not really familiar with this issue, but I would recommend that you raise the same question on our Atlassian Developer Community.

There, you will find users who develop add-ons, similarly to yourself, and they should be able to help you with this.

Let me know if you have any trouble.



Suggest an answer

Log in or Sign up to answer
Community showcase
Posted in Confluence

What project did you transition or start on Confluence with the shift to remote work?

It’s been great to hear from fellow users over the last few weeks about the best tips and fun moments you’ve had working on Confluence since the transition to working remote. I’d love to keep the c...

109 views 3 7
Join discussion

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you