-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
15 changed files
with
77 additions
and
80 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,46 @@ | ||
diff --git a/node_modules/@getlarge/kratos-cli/src/app/login.command.js b/node_modules/@getlarge/kratos-cli/src/app/login.command.js | ||
index b1c9284..e2abc4f 100644 | ||
index b1c9284..9b72ea4 100644 | ||
--- a/node_modules/@getlarge/kratos-cli/src/app/login.command.js | ||
+++ b/node_modules/@getlarge/kratos-cli/src/app/login.command.js | ||
@@ -60,6 +60,9 @@ let LoginCommand = LoginCommand_1 = class LoginCommand extends nest_commander_1. | ||
@@ -8,6 +8,8 @@ const common_1 = require("@nestjs/common"); | ||
const client_1 = require("@ory/client"); | ||
const class_validator_1 = require("class-validator"); | ||
const nest_commander_1 = require("nest-commander"); | ||
+const util = require("util"); | ||
+ | ||
let LoginQuestions = class LoginQuestions { | ||
parsePassword(val) { | ||
if (!val) { | ||
@@ -60,6 +62,9 @@ let LoginCommand = LoginCommand_1 = class LoginCommand extends nest_commander_1. | ||
identifier: email, | ||
password, | ||
}, | ||
+ }).catch((err) => { | ||
+ console.error(err?.error?.response?.data ?? err); | ||
+ process.exit(1); | ||
+ console.error(util.inspect(err?.error?.response?.data ?? err, false, null, true)); | ||
+ throw err; | ||
}); | ||
this.logger.debug('checking session token:', sessionToken); | ||
const { data } = await this.oryFrontendService.toSession({ | ||
diff --git a/node_modules/@getlarge/kratos-cli/src/app/registration.command.js b/node_modules/@getlarge/kratos-cli/src/app/registration.command.js | ||
index 385648f..235ccc2 100644 | ||
index 385648f..71c2c98 100644 | ||
--- a/node_modules/@getlarge/kratos-cli/src/app/registration.command.js | ||
+++ b/node_modules/@getlarge/kratos-cli/src/app/registration.command.js | ||
@@ -60,6 +60,9 @@ let RegistrationCommand = RegistrationCommand_1 = class RegistrationCommand exte | ||
@@ -8,6 +8,7 @@ const common_1 = require("@nestjs/common"); | ||
const client_1 = require("@ory/client"); | ||
const class_validator_1 = require("class-validator"); | ||
const nest_commander_1 = require("nest-commander"); | ||
+const util = require("util"); | ||
let RegistrationQuestions = class RegistrationQuestions { | ||
parsePassword(val) { | ||
if (!val) { | ||
@@ -60,6 +61,10 @@ let RegistrationCommand = RegistrationCommand_1 = class RegistrationCommand exte | ||
password, | ||
method: 'password', | ||
}, | ||
+ }).catch((err) => { | ||
+ console.error(err?.error?.response?.data ?? err); | ||
+ process.exit(1); | ||
+ // this.logger.warn(err.message, util.inspect(err?.error?.response?.data ?? err, false, null, true)); | ||
+ console.error(util.inspect(err?.error?.response?.data ?? err, false, null, true)); | ||
+ throw err; | ||
}); | ||
this.logger.debug(`Registered with email: ${email} and identity.id: ${data.identity.id}`); | ||
console.log(JSON.stringify({ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters