aboutsummaryrefslogtreecommitdiffhomepage
path: root/Example/Auth/Tests/FIRVerifyCustomTokenResponseTests.m
diff options
context:
space:
mode:
Diffstat (limited to 'Example/Auth/Tests/FIRVerifyCustomTokenResponseTests.m')
-rw-r--r--Example/Auth/Tests/FIRVerifyCustomTokenResponseTests.m7
1 files changed, 7 insertions, 0 deletions
diff --git a/Example/Auth/Tests/FIRVerifyCustomTokenResponseTests.m b/Example/Auth/Tests/FIRVerifyCustomTokenResponseTests.m
index b1d9d97..9fe95b1 100644
--- a/Example/Auth/Tests/FIRVerifyCustomTokenResponseTests.m
+++ b/Example/Auth/Tests/FIRVerifyCustomTokenResponseTests.m
@@ -47,6 +47,11 @@ static NSString *const kExpiresInKey = @"expiresIn";
*/
static NSString *const kRefreshTokenKey = @"refreshToken";
+/** @var kIsNewUserKey
+ @brief The name of the "isNewUser" property in the response.
+ */
+static NSString *const kIsNewUserKey = @"isNewUser";
+
/** @var kTestIDToken
@brief Testing ID token for verifying assertion.
*/
@@ -274,6 +279,7 @@ static const double kAllowedTimeDifference = 0.1;
kIDTokenKey : kTestIDToken,
kExpiresInKey : kTestExpiresIn,
kRefreshTokenKey : kTestRefreshToken,
+ kIsNewUserKey : @YES,
}];
XCTAssert(callbackInvoked);
XCTAssertNil(RPCError);
@@ -282,6 +288,7 @@ static const double kAllowedTimeDifference = 0.1;
NSTimeInterval expiresIn = [RPCResponse.approximateExpirationDate timeIntervalSinceNow];
XCTAssertEqualWithAccuracy(expiresIn, [kTestExpiresIn doubleValue], kAllowedTimeDifference);
XCTAssertEqualObjects(RPCResponse.refreshToken, kTestRefreshToken);
+ XCTAssertTrue(RPCResponse.isNewUser);
}
@end