Finished answered request layout (#9)

Also:
- rearranged API calls to be in alphabetical order (except the bearer
stuff at the top)
- modified the API base URL and Auth0 renewal URLs to be derived from
the browser's location (localhost / prod both work now with no change)
This commit is contained in:
Daniel J. Summers
2017-10-22 22:50:26 -05:00
parent a1ce40ee83
commit 3c3f0a7981
8 changed files with 171 additions and 52 deletions

View File

@@ -9,12 +9,12 @@
clientID: 'Of2s0RQCQ3mt3dwIkOBY5h85J9sXbF2n',
scope: 'openid profile email',
responseType: 'token id_token',
redirectUri: 'http://localhost:3000/static/silent.html'
redirectUri: location.protocol + '//' + location.host + '/static/silent.html'
})
</script>
<script>
webAuth.parseHash(window.location.hash, function (err, response) {
parent.postMessage(err || response, 'http://localhost:3000');
parent.postMessage(err || response, location.protocol + '//' + location.host);
})
</script>
</head>