Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

We're moving the community! Starting July 7, the current community will be read-only for approx. 2 weeks. You can browse content, but posting will be temporarily unavailable. Learn more

How To Refresh Token with API?

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)