@@ -80,17 +80,19 @@ NS_ASSUME_NONNULL_BEGIN
8080 errorBlock:(nullable QBRequestErrorBlock)errorBlock;
8181
8282/* *
83- * User login using Twitter Digits .
84- *
85- * @param headers Taken from '-[DGTOAuthSigning OAuthEchoHeadersToVerifyCredentials]'.
86- * @param successBlock Block with response and user instances if request succeded.
87- * @param errorBlock Block with response instance if request failed .
88- *
89- * @return An instance of QBRequest for cancel operation mainly.
83+ User login using Firebase (only phone number. See https://firebase.google.com/docs/auth/ios/phone-auth) .
84+
85+ @param projectID Firebase project ID
86+ @param accessToken Access token
87+ @param successBlock Block with response and user instances if request succeded .
88+ @param errorBlock Block with response instance if request failed.
89+ @return An instance of QBRequest for cancel operation mainly.
9090 */
91- + (QBRequest *)logInWithTwitterDigitsAuthHeaders : (NSDictionary *)headers
92- successBlock : (nullable void (^)(QBResponse *response, QBUUser * _Nullable user))successBlock
93- errorBlock:(nullable QBRequestErrorBlock)errorBlock;
91+ + (QBRequest *)logInWithFirebaseProjectID : (NSString *)projectID
92+ accessToken : (NSString *)accessToken
93+ successBlock : (nullable void (^)(QBResponse *response, QBUUser * _Nullable user))successBlock
94+ errorBlock:(nullable QBRequestErrorBlock)errorBlock;
95+
9496
9597// MARK: - LogOut
9698
@@ -120,6 +122,22 @@ NS_ASSUME_NONNULL_BEGIN
120122 successBlock : (nullable void (^)(QBResponse *response, QBUUser * _Nullable user))successBlock
121123 errorBlock:(nullable QBRequestErrorBlock)errorBlock;
122124
125+ // MARK: - DEPRECATED
126+
127+ /* *
128+ * User login using Twitter Digits.
129+ *
130+ * @param headers Taken from '-[DGTOAuthSigning OAuthEchoHeadersToVerifyCredentials]'.
131+ * @param successBlock Block with response and user instances if request succeded.
132+ * @param errorBlock Block with response instance if request failed.
133+ * @warning Deprecated in 2.9.3 Use 'logInWithFirebaseProjectID:accessToken:successBlock:errorBlock:'.
134+ * @return An instance of QBRequest for cancel operation mainly.
135+ */
136+ + (QBRequest *)logInWithTwitterDigitsAuthHeaders : (NSDictionary *)headers
137+ successBlock : (nullable void (^)(QBResponse *response, QBUUser * _Nullable user))successBlock
138+ errorBlock:(nullable QBRequestErrorBlock)errorBlock
139+ DEPRECATED_MSG_ATTRIBUTE(" Deprecated in 2.9.3 Use 'logInWithFirebaseProjectID:accessToken:successBlock:errorBlock:'." );
140+
123141@end
124142
125143NS_ASSUME_NONNULL_END
0 commit comments