# How to include 'expected audience'?

**URL:** <https://devforum.okta.com/t/how-to-include-expected-audience/14794>\
**Category:** Questions\
**Created:** [June 18, 2021, 11:25am UTC](https://devforum.okta.com/t/how-to-include-expected-audience/14794 "2021-06-18T11:25:22Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![lpatters1241](https://avatars.discourse-cdn.com/v4/letter/l/a9a28c/32.png) [@lpatters1241](https://devforum.okta.com/u/lpatters1241)\
**Post date:** [June 18, 2021, 11:25am UTC](https://devforum.okta.com/t/how-to-include-expected-audience/14794/1 "2021-06-18T11:25:22Z")

</div>

I am attempting to use a Node.js program to obtain an access token (grant\_type: ‘client\_credentials’).  
The action fails with a response of ‘{ error: ‘expected audience is required’ }’. I cannot find an  
documentation or information as to how to include this required value.

Suggestions?

Thank you!

---

<div class="post-metadata">

**Author:** ![lpatters1241](https://avatars.discourse-cdn.com/v4/letter/l/a9a28c/32.png) [@lpatters1241](https://devforum.okta.com/u/lpatters1241)\
**Post date:** [June 18, 2021, 2:07pm UTC](https://devforum.okta.com/t/how-to-include-expected-audience/14794/2 "2021-06-18T14:07:24Z")

</div>

I finally found the solution. The ‘expected audience’ is a required parameter to  
OktaJwtVerifier.verifyAccessToken() when verifying access tokens.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/oktadev/original/1X/589c4c5f80de422d01f47cee7185a7fb8227835c.png) [@system](https://devforum.okta.com/u/system)\
**Post date:** [June 19, 2021, 2:08pm UTC](https://devforum.okta.com/t/how-to-include-expected-audience/14794/3 "2021-06-19T14:08:05Z")

</div>

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.
