Monday, May 20, 2024
 Popular · Latest · Hot · Upcoming
59
rated 0 times [  62] [ 3]  / answers: 1 / hits: 15742  / 8 Years ago, fri, june 24, 2016, 12:00:00

I need to make a shallow rest call using javascript with firebases REST Api, in the past version I needed to pass the access token like this:



    var authKey = ref.getAuth().token;
var s = firebaseUrl + '/.json?shallow=true&auth=' + authKey;
$http.get(s)


How do I do this now with firebase 3?


More From » firebase

 Answers
4
firebase.auth().signInWithEmailAndPassword(u, p).then(function(result){

result.getToken().then(function(token){
$rootScope.userLoginToken = token;
});

});

[#61661] Tuesday, June 21, 2016, 8 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
jenna

Total Points: 706
Total Questions: 107
Total Answers: 106

Location: Azerbaijan
Member since Tue, Sep 21, 2021
3 Years ago
;