diff --git a/scripts/buildfire/services/firebase/firebase.js b/scripts/buildfire/services/firebase/firebase.js new file mode 100644 index 00000000..7d57bf12 --- /dev/null +++ b/scripts/buildfire/services/firebase/firebase.js @@ -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); + } +}; \ No newline at end of file