added a method to allow front-end access to the access_token