This will fix the dialog not returning an error when the user cancel or did not grant a permission to user the dialog api.
authenticator .authenticate('name of endpoint', true /* force re-authentication */) .then(function(token) { /* tokenis newly obtained. */ }) .catch(e=>{ /* This will work when user cancel the permission */ });
This will fix the dialog not returning an error when the user cancel or did not grant a permission to user the dialog api.
authenticator .authenticate('name of endpoint', true /* force re-authentication */) .then(function(token) { /*
tokenis newly obtained. */ }) .catch(e=>{ /* This will work when user cancel the permission */ });