thankful-jackal-42668
06/07/2024, 7:53 AMthankful-jackal-42668
06/07/2024, 7:09 PMlimited-pencil-78283
06/07/2024, 7:19 PMthankful-jackal-42668
06/07/2024, 7:36 PMlimited-pencil-78283
06/07/2024, 8:23 PMthankful-jackal-42668
06/08/2024, 4:57 AMlimited-pencil-78283
06/08/2024, 5:01 AMconst url = 'https://accounts.zoho.in/oauth/v2/token'
const refreshToken = ''
Yes, declare a variable and store the static refreshToken in it. Do this within the hook
in the studio, declare the access token at bot level (refer image)
and then the code to check if accessToken is valid, if not use refreshToken to get new accessToken
https://cdn.discordapp.com/attachments/1248545326780907583/1248864455480184862/image.png?ex=66653728&is=6663e5a8&hm=9ef75271655938a3652d1b0575d1c3f3958f11b2f72514d000c979360e58a74f&limited-pencil-78283
06/08/2024, 5:03 AMlimited-pencil-78283
06/08/2024, 5:03 AMthankful-jackal-42668
06/08/2024, 7:55 AMlimited-pencil-78283
06/08/2024, 10:08 AM