I need to get the data from the second nested axios call and be able to use it outside of the init function
const init = async () => {
await axios.get(generateSessionUrl())
(({ data }) => data)
(async ({ session_id }) => {
const godSignature = await md5(`${config.devId}getgods${config.authKey}${date}`);
await axios.get(`https://api.smitegame.com/smiteapi.svc/getgodsjson/${config.devId}/${godSignature}/${session_id}/${date}/1`)
((data) => {
setGods(data);
console.log(data.data[0].Ability_1.Description.itemDescription)
let info = data.data;
return info
})
})
};