oc-auth-switcher 0.2.0 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +7 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -885,7 +885,13 @@ var AuthSwitcherPlugin = async ({ client }) => {
|
|
|
885
885
|
const selection = selectAccount(accounts, state);
|
|
886
886
|
let account = selection.account;
|
|
887
887
|
if (selection.switched) {
|
|
888
|
-
|
|
888
|
+
await client.app.log({
|
|
889
|
+
body: {
|
|
890
|
+
service: "oc-auth-switcher",
|
|
891
|
+
level: "info",
|
|
892
|
+
message: selection.reason ?? "switched account"
|
|
893
|
+
}
|
|
894
|
+
}).catch(() => {});
|
|
889
895
|
}
|
|
890
896
|
state.currentAccount = account.name;
|
|
891
897
|
const attemptedAccounts = new Set;
|