motion-firebase 1.0.7 → 1.0.8
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/firebase-auth/firebase_auth_client.rb +16 -0
- data/lib/firebase/version.rb +1 -1
- metadata +1 -1
@@ -42,6 +42,22 @@ class FirebaseAuthClient
|
|
42
42
|
changePasswordForEmail(email, oldPassword:old_password, newPassword:new_password, completionBlock:block)
|
43
43
|
end
|
44
44
|
|
45
|
+
def login_facebook(credentials, &block)
|
46
|
+
app_id = credentials[:app_id]
|
47
|
+
raise "app_id is required in #{__method__}" unless app_id
|
48
|
+
permissions = credentials[:permissions]
|
49
|
+
raise "permissions is required in #{__method__}" unless permissions
|
50
|
+
loginToFacebookAppWithId(app_id, permissions:permissions, withCompletionBlock:block)
|
51
|
+
end
|
52
|
+
|
53
|
+
def login_to_twitter(credentials, &block)
|
54
|
+
app_id = credentials[:app_id]
|
55
|
+
raise "app_id is required in #{__method__}" unless app_id
|
56
|
+
on_multiple = credentials[:on_multiple]
|
57
|
+
raise "on_multiple is required in #{__method__}" unless on_multiple
|
58
|
+
loginToTwitterAppWithId(app_id, multipleAccountsHandler:on_multiple, withCompletionBlock:block)
|
59
|
+
end
|
60
|
+
|
45
61
|
def inspect
|
46
62
|
"#<#{self.class}:0x#{self.object_id.to_s(16)}>"
|
47
63
|
end
|
data/lib/firebase/version.rb
CHANGED