after going through the module code and extensive googling I am still to find a "simplistic" (ie. by not rewriting the whole module) way of acquiring refresh token