Skip to content

Commit

Permalink
Merge pull request #410 from ahabeb/master
Browse files Browse the repository at this point in the history
Add firebase buildfire integration
  • Loading branch information
abuturla authored Apr 24, 2018
2 parents 77084d6 + a7d9297 commit 2869689
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions scripts/buildfire/services/firebase/firebase.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
/**
* Created by Ayman on 4/4/2018.
* Ref: https://github.com/BuildFire/sdk/wiki/Firebase
*/
if (typeof (buildfire) == "undefined") throw ("please add buildfire.js first to use BuildFire services");

if (typeof (buildfire.services) == "undefined") buildfire.services = {};

buildfire.services.firebase = {
//--- options properties ---
//integrationToken: string
//forceLogin: bool, by default false
createCustomToken: function (options, callback) {
var packetId = null;
var command = 'firebase.createCustomToken';

var packet = new Packet(packetId, command, options);
buildfire._sendPacket(packet, callback);
}
};

0 comments on commit 2869689

Please sign in to comment.