File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed
Firebase/Auth/Source/Auth Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -1468,6 +1468,12 @@ - (void)testSignInAnonymouslySuccess {
1468
1468
XCTAssertTrue ([NSThread isMainThread ]);
1469
1469
[self assertUserAnonymous: result.user];
1470
1470
XCTAssertNil (error);
1471
+ FIRAdditionalUserInfo *userInfo = result.additionalUserInfo ;
1472
+ XCTAssertNotNil (userInfo);
1473
+ XCTAssertTrue (userInfo.isNewUser );
1474
+ XCTAssertNil (userInfo.username );
1475
+ XCTAssertNil (userInfo.profile );
1476
+ XCTAssertNil (userInfo.providerID );
1471
1477
[expectation fulfill ];
1472
1478
}];
1473
1479
[self waitForExpectationsWithTimeout: kExpectationTimeout handler: nil ];
Original file line number Diff line number Diff line change @@ -928,7 +928,7 @@ - (void)signInAnonymouslyWithCompletion:(nullable FIRAuthDataResultCallback)comp
928
928
return ;
929
929
}
930
930
FIRAdditionalUserInfo *additionalUserInfo =
931
- [[FIRAdditionalUserInfo alloc ] initWithProviderID: FIREmailAuthProviderID
931
+ [[FIRAdditionalUserInfo alloc ] initWithProviderID: nil
932
932
profile: nil
933
933
username: nil
934
934
isNewUser: YES ];
You can’t perform that action at this time.
0 commit comments