Shopify public app authentication token expiry

Shopify Partner
5 0 2

I am developing a shopify public application which is fetching the authentication token from the shopify store. but it is getting expired automatically after few hours so the subsequent API calls give an error is there any way to generate the auth token without opening the application or use the token for a longer period of time.