firebaseoauth2
Advanced tools
Comparing version
37
index.js
@@ -449,23 +449,26 @@ const express = require("express"); | ||
ref.once('value') | ||
if(snapshot.val()){ | ||
console.log(448, snapshot.val()) | ||
.then(function(snapshot){ | ||
if(snapshot.val()){ | ||
console.log(448, snapshot.val()) | ||
const value = snapshot.val() | ||
const uid = value.uid | ||
const client_id = value.client_id | ||
getClientByUidAndClientId(uid, client_id) | ||
.then(function(client){ | ||
console.log(456, client) | ||
const value = snapshot.val() | ||
const uid = value.uid | ||
const client_id = value.client_id | ||
getClientByUidAndClientId(uid, client_id) | ||
.then(function(client){ | ||
console.log(456, client) | ||
resolve({ | ||
uid : uid, | ||
client_id : client_id, | ||
client : client | ||
resolve({ | ||
uid : uid, | ||
client_id : client_id, | ||
client : client | ||
}) | ||
}, function(){ | ||
reject() | ||
}) | ||
}, function(){ | ||
}else{ | ||
console.log(469) | ||
reject() | ||
}) | ||
}else{ | ||
reject() | ||
} | ||
} | ||
@@ -472,0 +475,0 @@ }) |
{ | ||
"name": "firebaseoauth2", | ||
"version": "0.3.6", | ||
"version": "0.3.7", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "indexjs.js", |
13819
0.76%435
0.69%