Authorization in Web Service Testing

Hi,

I would like to ask about dynamic Token for Bearer type authorization. The token generated to access my company website is daily basis where the token will expires after 24hours. Therefore, I need to get new token everyday for api testing and the authorization is under the Web Service Request. Is there any method where I can apply for token and authorize using the dynamic token by writing script either under Web Service Request or Test Case?

Thanks in advance!