You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When trying to use this with React Native, I'm getting an error... I think it's due to extra "agent" stuff we're doing with axios. Can we eliminate this code from api-client.js?
const https= require("https")
let api = null;
if (https.Agent) {
//create apply the adapter to our axios instance
api = axios.create({
httpsAgent: new https.Agent({
rejectUnauthorized: false
}),
adapter: adapter,
})
} else {
//we can't use the https.Agent
api = axios.create({
adapter: adapter,
})
}
The text was updated successfully, but these errors were encountered:
When trying to use this with React Native, I'm getting an error... I think it's due to extra "agent" stuff we're doing with axios. Can we eliminate this code from api-client.js?
The text was updated successfully, but these errors were encountered: