Add a prototype method for createAccessToken