ServicesAutomation.sys.mjs |
This module is used in automation to connect the browser to
a specific FxA account and trigger FX Sync.
To use it, you can call this sequence:
initConfig("https://accounts.stage.mozaws.net");
await Authentication.signIn(username, password);
await Sync.triggerSync();
await Authentication.signOut();
Where username is your FxA e-mail. it will connect your browser
to that account and trigger a Sync (on stage servers.)
You can also use the convenience function that does everything:
await triggerSync(username, password, "https://accounts.stage.mozaws.net");
|
11565 |