README.md in motion-firebase-1.0.8 vs README.md in motion-firebase-1.0.9
- old
+ new
@@ -103,10 +103,18 @@
firebase.auth(credential,
completion: proc { |error, data| 'completion block' },
disconnect: proc { |error| 'completion block', },
)
firebase.unauth
+ # when using FirebaseAuthClient to authenticate, this child node should be
+ # monitored for changes
+ firebase.auth_state
+ # usually you'll want to monitor its value, so this is a helper for that:
+ handle = firebase.on_auth do |snapshot|
+ end
+ # be a good citizen and turn off the listener later!
+ firebase.off(handle)
##### Transactions
firebase.run { |data| 'transaction block' }
firebase.run(
@@ -164,10 +172,10 @@
##### Facebook authentication methods
`credentials` should include `:app_id` and `:permissions`
- auth.login_facebook(app_id: '123abc', permissions: ['email']) { |error, user| }
+ auth.login_to_facebook(app_id: '123abc', permissions: ['email']) { |error, user| }
##### Twitter authentication methdos
`credentials` should include `:app_id` and `:on_multiple` block. The
`:on_multiple` block is called when more than one account is found. It is