Browse Source

Update vanilla.html

Maurits van der Schee 3 years ago
parent
commit
e296771266
No account linked to committer's email address
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      examples/clients/auth0/vanilla.html

+ 1
- 1
examples/clients/auth0/vanilla.html View File

@@ -7,7 +7,7 @@ var clientId = ''; // client id as defined in auth0
7 7
 var audience = 'https://your-php-crud-api/api.php'; // api audience as defined in auth0
8 8
 var url = '/api.php/records/posts?join=categories&join=tags&join=comments&filter=id,eq,1';
9 9
 
10
-function requestApi() {
10
+function requestAPI() {
11 11
     var match = RegExp('[#&]access_token=([^&]*)').exec(window.location.hash);
12 12
     var accessToken = match && decodeURIComponent(match[1].replace(/\+/g, ' '));
13 13
     if (!accessToken) {

Loading…
Cancel
Save