Skip to content

Commit

Permalink
Merge pull request #326 from opticdev/final-fixes8_3_0
Browse files Browse the repository at this point in the history
Getting Ready for 8.3.0
  • Loading branch information
acunniffe authored Aug 28, 2020
2 parents 45f0f04 + 6e690af commit c1c5134
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion workspaces/cli-server/src/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ class CliServer {
origin: [
// this needs to be made exclusive in prod
'http://localhost:4005',
'http://app.o3c.info',
'https://app.o3c.info',
'https://app.useoptic.com',
],
};
Expand Down
3 changes: 2 additions & 1 deletion workspaces/local-cli/src/commands/login.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,14 +36,15 @@ export default class Login extends Command {
cli.action.start('Waiting to be authenticated...');

let token: string;
setTimeout(() => {
const fallbackTimeout = setTimeout(() => {
if (!token) {
const launchUrl = `${loginBaseUrl}/login`;
this.log(`Please log in at ${launchUrl}`);
cli.open(launchUrl); //reload tab behavior is actually undesirable here
}
}, 5000);
token = await tokenReceived;
clearTimeout(fallbackTimeout);
await setCredentials({ token });
cli.action.stop('Received Credentials');

Expand Down

0 comments on commit c1c5134

Please sign in to comment.