firebaseoauth2
Advanced tools
@@ -379,5 +379,7 @@ const express = require("express"); | ||
const getClientByAuthorizeCode = (authorize_code) => { | ||
console.log('getClientByAuthorizeCode', authorize_code) | ||
return new Promise(function(resolve, reject){ | ||
FirebaseDb.ref('/oAuth/AuthorizeCodes/' + authorize_code).once('value') | ||
.then(function(snapshot){ | ||
console.log(383, snapshot.val()) | ||
if(snapshot.val()){ | ||
@@ -403,5 +405,7 @@ const value = snapshot.val() | ||
const getClientByUidAndClientId = (uid, client_id) => { | ||
console.log('getClientByUidAndClientId', uid, client_id) | ||
return new Promise(function(resolve, reject){ | ||
FirebaseDb.ref('/oAuth/users/' + uid + '/' + client_id) | ||
FirebaseDb.ref('/oAuth/users/' + uid + '/' + client_id).once('value') | ||
.then(function(snapshot){ | ||
console.log(408, snapshot.val()) | ||
if(snapshot.val()){ | ||
@@ -408,0 +412,0 @@ resolve(snapshot.val()) |
{ | ||
"name": "firebaseoauth2", | ||
"version": "0.2.5", | ||
"version": "0.2.6", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "indexjs.js", |
11690
1.86%78
1850%368
1.1%