@@ -25,7 +25,7 @@ NS_ASSUME_NONNULL_BEGIN
2525
2626/* * @typedef FIRAuthProviderSignInCompletionBlock
2727 @brief The type of block used to notify the auth system of the result of a sign-in flow.
28- @see FUIAuthProvider.signInWithEmail :presentingViewController:completion:
28+ @see FUIAuthProvider.signInWithDefaultValue :presentingViewController:completion:
2929 @param credential The @c FIRAuthCredential object created after user interaction with third
3030 party provider.
3131 @param error The error which may happen during creation of The @c FIRAuthCredential object.
@@ -90,7 +90,26 @@ typedef void (^FIRAuthProviderSignInCompletionBlock) (
9090 */
9191- (void )signInWithEmail : (nullable NSString *)email
9292 presentingViewController : (nullable UIViewController *)presentingViewController
93- completion : (nullable FIRAuthProviderSignInCompletionBlock)completion ;
93+ completion : (nullable FIRAuthProviderSignInCompletionBlock)completion
94+ __attribute__((deprecated(" This is deprecated API and will be removed in a future release."
95+ " Use signInWithDefaultValue:presentingViewController:completion:" )));
96+
97+ /* * @fn signInWithDefaultValue:presentingViewController:completion:
98+ @brief Called when the user wants to sign in using this auth provider.
99+ @remarks Implementors should invoke the completion block when the sign-in process has terminated
100+ or is canceled. There are two valid combinations of parameters; either @c credentials and
101+ @c userInfo are both non-nil, or @c error is non-nil. Errors must specify an error code
102+ which is one of the @c FIRAuthErrorCode codes. It is very important that all possible code
103+ paths eventually call this method to inform the auth system of the result of the sign-in
104+ flow.
105+ @param defaultValue The default initialization value of the provider (email, phone number etc.).
106+ @param presentingViewController The view controller used to present the UI.
107+ @param completion See remarks. A block which should be invoked when the sign-in process
108+ (using @c FIRAuthCredential) completes.
109+ */
110+ - (void )signInWithDefaultValue : (nullable NSString *)defaultValue
111+ presentingViewController : (nullable UIViewController *)presentingViewController
112+ completion : (nullable FIRAuthProviderSignInCompletionBlock)completion ;
94113
95114/* * @fn signOut
96115 @brief Called when the user wants to sign out.
0 commit comments