This code can be used as boilerplate for the refresh-token implementation. Just copy the routes and import lines. This is done using flask-jwt-extended. With in the code there is also admin decorator already defined should the need arise.
I will be adding the extra functionalities, So that it can be used effectively.