update goofy error message to be useful
This commit is contained in:
parent
46599c864c
commit
a9b1c4204b
|
@ -46,7 +46,7 @@ module.exports.authenticate = function (opts) {
|
||||||
return new state.Promise(function (resolve, reject) {
|
return new state.Promise(function (resolve, reject) {
|
||||||
// TODO use global interval whenever the number of active links is high
|
// TODO use global interval whenever the number of active links is high
|
||||||
var t = setTimeout(function () {
|
var t = setTimeout(function () {
|
||||||
console.log("the moon lady wins :-/");
|
console.log("[Magic Link] Timeout for '" + auth.subject + "'");
|
||||||
delete _auths[id];
|
delete _auths[id];
|
||||||
var err = new Error("Login Failure: Magic Link was not clicked within 5 minutes");
|
var err = new Error("Login Failure: Magic Link was not clicked within 5 minutes");
|
||||||
err.code = 'E_LOGIN_TIMEOUT';
|
err.code = 'E_LOGIN_TIMEOUT';
|
||||||
|
|
Loading…
Reference in New Issue