@orbiting/backend-modules-auth
Advanced tools
Comparing version 3.0.0 to 3.0.1
@@ -1,6 +0,16 @@ | ||
<a name="3.0.0"></a> | ||
# 3.0.0 (2018-01-13) | ||
<a name="3.0.1"></a> | ||
## 3.0.1 (2018-01-14) | ||
<a name="3.0.1"></a> | ||
## 3.0.1 (2018-01-14) | ||
### Bug Fixes | ||
* **auth:** autologin ([2f10534](https://github.com/orbiting/backend-modules/commit/2f10534)) | ||
<a name="3.0.0"></a> | ||
@@ -7,0 +17,0 @@ # 3.0.0 (2018-01-13) |
@@ -6,6 +6,6 @@ const uuid = require('uuid/v4') | ||
const geoForIP = require('./geoForIP') | ||
const fetch = require('isomorphic-unfetch') | ||
const checkEnv = require('check-env') | ||
const t = require('./t') | ||
const debug = require('debug')('auth') | ||
const { authorizeSession } = require('./Sessions') | ||
const { | ||
@@ -24,4 +24,2 @@ sendMail, | ||
AUTO_LOGIN, | ||
BASIC_AUTH_USER, | ||
BASIC_AUTH_PASS, | ||
AUTH_MAIL_TEMPLATE_NAME, | ||
@@ -94,13 +92,4 @@ AUTH_MAIL_SUBJECT | ||
setTimeout(async () => { | ||
if (BASIC_AUTH_PASS) { | ||
const result = await fetch(verificationUrl, { | ||
headers: { | ||
'Authorization': 'Basic ' + (Buffer.from(BASIC_AUTH_USER + ':' + BASIC_AUTH_PASS).toString('base64')) | ||
} | ||
}) | ||
console.log('AUTO_LOGIN: ' + await result.text()) | ||
} else { | ||
const result = await fetch(verificationUrl) | ||
console.log('AUTO_LOGIN: ' + await result.text()) | ||
} | ||
console.log('AUTO_LOGIN!') | ||
await authorizeSession({ pgdb, token, emailFromQuery: email }) | ||
}, 2000) | ||
@@ -107,0 +96,0 @@ } |
{ | ||
"name": "@orbiting/backend-modules-auth", | ||
"version": "3.0.0", | ||
"version": "3.0.1", | ||
"description": "auth migrations, seeds, middleware, graphql schema and resolvers", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
0
62389
1455