Skip to content

Commit

Permalink
added profile fetch to the example
Browse files Browse the repository at this point in the history
  • Loading branch information
glena committed Nov 25, 2016
1 parent 334bcc2 commit beb7875
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion example/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -165,13 +165,14 @@ <h2>Console:</h2>
domain: 'auth0-tests-auth0js.auth0.com',
redirectUri: 'http://localhost:3000/example',
clientID: '3GGMIEuBPZ28lb6NBDNARaEZisqFakAs',
responseType: 'id_token'
responseType: 'token'
});

var hash = webAuth.parseHash();
if (hash) {
htmlConsole.dumpCallback(hash.error ? hash : null, hash.error ? null : hash);
window.location.hash = '';
webAuth.client.userInfo(hash.accessToken, htmlConsole.dumpCallback.bind(htmlConsole));
}

$('#clear-console').click(function () {
Expand Down

0 comments on commit beb7875

Please sign in to comment.