Commit 26ae795
authored
fix(sso): Ensure that only one authentication cycle is started. (#1355)
The 'sso' command, when run against a profile with an expired refresh
token, would cause two authentication cycles to be started: one by the
CLI core before the 'sso' command itself was executed, and then
another by the 'sso' command. The second cycle would fail and result
in an 'extra' browser tab/window with an error message of "ERROR: no
authorization code returned". While the authentication was successful
and the new refresh/access/session tokens were stored, this confused
the user of the CLI.1 parent 6a47798 commit 26ae795
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
639 | 639 | | |
640 | 640 | | |
641 | 641 | | |
642 | | - | |
| 642 | + | |
643 | 643 | | |
644 | 644 | | |
645 | 645 | | |
| |||
660 | 660 | | |
661 | 661 | | |
662 | 662 | | |
663 | | - | |
| 663 | + | |
664 | 664 | | |
665 | 665 | | |
666 | 666 | | |
| |||
0 commit comments