Example #1
0
 .then(() => {
   // At this point we know impersonation has succeeded. Merely transitioning to 'index'
   // may or may not work, depending on whether some data has been loaded as the superuser
   // and has stuck around in the store. We can't really clear out the store either, considering
   // our session data is stored in there. So: we just reload the page to get a clean slate.
   return Location.replaceAndWait('/');
 }, (e) => {
Example #2
0
 }).then(() => {
   return Location.replaceAndWait('/');
 }).catch((e) => {