diff --git a/docs/examples/external_auth.md b/docs/examples/external_auth.md index 8df6d906f..310e52648 100644 --- a/docs/examples/external_auth.md +++ b/docs/examples/external_auth.md @@ -175,7 +175,7 @@ WHERE Now whenever you are authenticated in your Rails application you can use some Javascript code to get the token and use it: ```javascript -$.getJSON('/api_json').done(function(data){ +$.getJSON('/api_token').done(function(data){ $.ajax('/orders', {'Authorization': 'Bearer ' + data.token}).done(function(data){ console.log('Visible Orders: ', data); })