How to refresh Access token by salseforce

I am working on an ionic application, in which salesforce is used as backend.
I am fetching data from salesforce and sending data too.
I want to know that how to refresh the Access token after it gets expired.
Can anyone give me reference for it.