How to use Refresh token for Gmail API in TestPorject?

Hi, first time using APIs with TestProject here.

I am trying to read the OTP from my Gmail inbox using APIs in TestProject, and I have referred to all the articles present on it.

I have till now generated an access token, but found that the Gmail API access token expires in 1 hour. So, I needed to create a Refresh token, so that my Access token gets refreshed automatically.

So far I had given Header as Authorization = Bearer Access_token

I wanted to know, how should I use refresh token here?

Can someone please help?
TIA

1 Like