Skip to content
Snippets Groups Projects
Commit 0ffe58ab authored by Christian ZHENG's avatar Christian ZHENG
Browse files

fix(login): persist login state at startup

parent 06d725a6
No related branches found
No related tags found
2 merge requests!14feat: added mounted, .bashrc, .zshrc, added tests, added keycloak tests,!8feat(extension): login, open in devcontainer, automaticly save code, open briefing, publish extension
......@@ -37,7 +37,13 @@ export default class Controller {
}
},
});
this.init();
}
async init() {
const exensionStorage = ExtensionStore.getInstance();
this.gettingStartedView.isAlreadyConnected = !!(await exensionStorage.getAccessToken());
}
async authenticate() {
const tokens = await this.connection.getToken({ openLink: Controller.openBrowserWithUrl });
const exensionStorage = ExtensionStore.getInstance();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment