post https://wt-your-id.sandbox.auth0-extend.com/your-app/auth/
Perform authentication and receive JWT token to use at /api/* endpoints
Perform authentication by submitting a signed challenge back to the app
$.post(
'https://yoursite.com/auth/',
{
xdr: 'AAAA....sdfdkfjk',
public_key: 'GACCRQ4BI3DTI6U37OLBOQ6FBY3CSF5C672LWIIOCBRQ3GYLCK2IGZ6U'
},
function(data) {
// returns a JWT token issued by the app backend which can then
// be used to authenticate for /api/* endpoints
console.log(data);
});