
EswaranB.46530 (Customer) asked a question.
Hello Team - I am new to Okta authentication services. I am following the example code (https://github.com/oktadeveloper/okta-node-rest-api-example) as mentioned by the blog post (https://developer.okta.com/blog/2018/08/21/build-secure-rest-api-with-node). But unfortunately I am facing when I tried few simple command line invocations
node client http://localhost:3000/parts
or even
node client http://localhost:3000/parts post '{"partNumber":"asdf-1234"}'
Error: StatusCodeError: 500 - "<!DOCTYPE html>\n<html lang=\"en\">\n<head>\n<meta charset=\"utf-8\">\n<title>Error</title>\n</head>\n<body>\n<pre>expected audience is required</pre>\n</body>\n</html>\n"
Any tip/help would be appreciated.

Hello, Eswaran!
Thank you for posting this question! I would strongly recommend you to create a separate ticket on this matter, as your question addressed suits the Okta Developer Support team.
Have a nice day!