Implemented set code method that sets the code attribute and requests an access token with that code