Fix OAuth 2 example to use oauth2() method