Loading...

ff-login

< Back To DOCS

Purpose

ff-login attribute allows end users to authenticate. When ff-login attribute is added to a web page, a special value, _user is added to the root of the view model exposing information about the authenticated user. _user values are accessible in the web page, but not saved in Firebase.

To use this feature, you must will need to create a Facebook application and configure your firebase application. This process will take about 10 minutes.

HTML


            

Result

login with facebook.
firstName: {{firstName}}
lastName: {{lastName}}
name: {{name}}
imgUrl: {{imgUrl}}
timezone: {{timezone}}
ageMin: {{ageMin}}
gender: {{gender}}
id: {{id}}
link: {{link}}
locale: {{locale}}
isImgSilhouette: {{isImgSilhouette}}

See firebase documentation for more information about securing your data.

Currently Firefight only supports Facebook authentication. Firebase supports the following Authentication Providers: Custom, Email & Password, Anonymous, Facacebook, Twitter, GetHub and Google. Future version of firefight may also support other authentication providers

See simple chat sample for another example.

< Back To DOCS