How To Refresh Token with API?

NitinJ1015
Shopify Partner
1 0 2

Hi all,

 

After the OAuth flow is completed and the Access Token is received, we are storing the it in database.

 

We don't know what to do if the Access Token we saved in the database is expired. Is there a refresh token that can be can be used without making the user go through OAuth flow again?

 

The goal here is to use the permanent refresh token to generate access token when it expires. This has to be done through code, programmatically.

 

Thanks,

Replies 0 (0)