Currently implementing refresh tokens for Angular app.
This is the code used to check if current token is expired. If expired, it then tries to post to server for ref