Skip to content
This repository has been archived by the owner on Jun 3, 2024. It is now read-only.

Masq: bug fix in login link generation #251

Merged
merged 2 commits into from
Jun 17, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 1 addition & 4 deletions src/libs/masq.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ export default class MasqStore {
this.storeName = 'masq';

this.masq = null;
this.loginLink = null;
this.config = config;

this.initPromise = this.init();
Expand Down Expand Up @@ -43,7 +42,6 @@ export default class MasqStore {
handleError('replicationError', e.detail.message, e.detail);
});
this.MasqError = MasqError;
this.loginLink = await this.masq.getLoginLink();
this.initialized = true;
}

Expand Down Expand Up @@ -80,7 +78,7 @@ export default class MasqStore {
async login(apps) {
await this.checkInit();
// open Masq app window to connect to Masq
this.openLoginPopupWindow(this.loginLink);
this.openLoginPopupWindow(this.masq.loginLink);

try {
this.masqActivatingModal = new MasqActivatingModal();
Expand All @@ -103,7 +101,6 @@ export default class MasqStore {
async logout() {
await this.checkInit();
await this.masq.signout();
this.loginLink = await this.masq.getLoginLink();
}

async isLoggedIn() {
Expand Down