From c16dea6da130375ecc4e98f116fae54df45d1b9a Mon Sep 17 00:00:00 2001 From: Martin Riedel Date: Thu, 12 Mar 2020 14:46:40 -0400 Subject: [PATCH] feat: Add JWT output for credential.ts and sdr.ts in cli --- packages/daf-cli/src/credential.ts | 4 ++++ packages/daf-cli/src/sdr.ts | 2 ++ 2 files changed, 6 insertions(+) diff --git a/packages/daf-cli/src/credential.ts b/packages/daf-cli/src/credential.ts index b60921e27..8a7d9b06d 100644 --- a/packages/daf-cli/src/credential.ts +++ b/packages/daf-cli/src/credential.ts @@ -84,6 +84,8 @@ program if (cmd.qrcode) { qrcode.generate(jwt) + } else { + console.log(`jwt: ${jwt}`) } }) @@ -228,6 +230,8 @@ program if (cmd.qrcode) { qrcode.generate(jwt) + } else { + console.log(`jwt: ${jwt}`) } } }) diff --git a/packages/daf-cli/src/sdr.ts b/packages/daf-cli/src/sdr.ts index f2b5a4167..67030cef0 100644 --- a/packages/daf-cli/src/sdr.ts +++ b/packages/daf-cli/src/sdr.ts @@ -116,5 +116,7 @@ program if (cmd.qrcode) { qrcode.generate(jwt) + } else { + console.log(`jwt: ${jwt}`) } })