I needed to implement the Authorization Code method, rather than Implicit

I needed to implement the Authorization Code method, rather than Implicit. 
This requires the response_type in the authorization request to be set to 'code' rather than 'token'. I have now made this an optional attribute that defaults to 'token'