API Token generate automatically and send notification

Now the API Token is valid only for 24 hours. This is a big issue for my Algo Trade. I need to daily generate the token. So is there any way to generate this token automatically and send a Push notification to my mobile, if I accept it then it should renew that token.
OR any other way for this ?

You can use browser automation tools like selenium.

Thank you

How can you bypass the 2F authentication without manual intervention? Do you have a working version of it that you can share