|
@@ -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) {
|