Best approach for renewimg session/token ?

I have Magento 2 store which has user login on another site/platform. When tries to login on Magento user is redirected to that other site and then redirected back to Magento. What is the best approach to track status of and renew tokens from that other site through magento and then distroy session on Magento if token is expired ?

Thanks in advance.

submitted by /u/DMX_RR
[link] [comments]