We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9b7414d commit 6417ae3Copy full SHA for 6417ae3
examples/javascript/src/lib/api-service.mjs
@@ -10,6 +10,8 @@ const authenticateClient = async () => {
10
const apiUrl = process.env.JANE_API_URL || defaultHost
11
12
const resp = await request({
13
+ // Prevent exceptions when requests have status code different from 2xx
14
+ validateStatus: false,
15
method: 'post',
16
url: `${apiUrl}/oauth/token`,
17
data: {
0 commit comments