fix(auth): use redirect flow

The interactive flow requires to paste a code back into the
command-line, which does only work when it's cat'ed, but not
if it is pasted.

This should let it handle everything internally, which is
way more user-friendly.
This commit is contained in:
Sebastian Thiel
2016-07-17 19:31:13 +02:00
parent 2a2e7bfc9a
commit b6f5fc6eb3
3 changed files with 3 additions and 3 deletions

View File

@@ -122,7 +122,7 @@ impl<'n> Engine<'n> {
JsonTokenStorage {
program_name: "${util.program_name()}",
db_dir: config_dir.clone(),
}, Some(FlowType::InstalledInteractive));
}, Some(FlowType::InstalledRedirect(54324)));
let client =
${self._debug_client(DEBUG_FLAG) | indent_all_but_first_by(3)};