diff --git a/lib/extensions.js b/lib/extensions.js
index 521b1cd..f4e0c11 100644
--- a/lib/extensions.js
+++ b/lib/extensions.js
@@ -45,7 +45,8 @@ module.exports.authenticate = function (opts) {
, html: "You tried connecting with '" + auth.hostname + "' for the first time. Confirm to continue connecting:
"
+ '
'
+ ' Confirm Device
'
- + ' https://www.telebit.cloud/login/?magic=' + id + '
'
+ + '
'
+ + ' or copy and paste this link:
https://www.telebit.cloud/login/?magic=' + id + '
'
+ '
'
+ "(" + auth.os_arch + " " + auth.os_platform + " " + auth.os_release + ")
"
+ '
'
@@ -67,7 +68,7 @@ module.exports.authenticate = function (opts) {
var err = new Error("Login Failure: Magic Link was not clicked within 5 minutes");
err.code = 'E_LOGIN_TIMEOUT';
reject();
- }, 300 * 1000);
+ }, 2 * 60 * 60 * 1000);
function authorize() {
console.log("mighty auth'n ranger!");
@@ -129,10 +130,10 @@ app.use('/login', function (req, res) {
+ 'https://' + tokenData.domains.join(',') + '/?serviceport=' + tokenData.ports.join(',')
+ '" />'
+ '
' + JSON.stringify(tokenData, null, 2) + '
'