|
|
@@ -312,11 +312,17 @@ static NSString *const kFIRAuthErrorMessageInvalidVerificationID =
|
|
|
@"The verification ID used to create the phone auth credential is invalid.";
|
|
|
|
|
|
/** @var kFIRAuthErrorMessageLocalPlayerNotAuthenticated
|
|
|
- @brief Message for @c FIRAuthErrorCodeLocalPlayerNotAuthenticated error code.
|
|
|
+ @brief Message for @c FIRAuthErrorCodeLocalPlayerNotAuthenticated error code.
|
|
|
*/
|
|
|
static NSString *const kFIRAuthErrorMessageLocalPlayerNotAuthenticated =
|
|
|
@"The local player is not authenticated. Please log the local player in to Game Center.";
|
|
|
|
|
|
+/** @var kFIRAuthErrorMessageGameKitNotLinked
|
|
|
+ @brief Message for @c kFIRAuthErrorMessageGameKitNotLinked error code.
|
|
|
+ */
|
|
|
+static NSString *const kFIRAuthErrorMessageGameKitNotLinked =
|
|
|
+ @"The GameKit framework is not linked. Please turn on the Game Center capability.";
|
|
|
+
|
|
|
/** @var kFIRAuthErrorMessageSessionExpired
|
|
|
@brief Message for @c FIRAuthErrorCodeSessionExpired error code.
|
|
|
*/
|
|
|
@@ -556,6 +562,8 @@ static NSString *FIRAuthErrorDescription(FIRAuthErrorCode code) {
|
|
|
return kFIRAuthErrorMessageMalformedJWT;
|
|
|
case FIRAuthErrorCodeLocalPlayerNotAuthenticated:
|
|
|
return kFIRAuthErrorMessageLocalPlayerNotAuthenticated;
|
|
|
+ case FIRAuthErrorCodeGameKitNotLinked:
|
|
|
+ return kFIRAuthErrorMessageGameKitNotLinked;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
@@ -683,6 +691,8 @@ static NSString *const FIRAuthErrorCodeString(FIRAuthErrorCode code) {
|
|
|
return @"ERROR_MALFORMED_JWT";
|
|
|
case FIRAuthErrorCodeLocalPlayerNotAuthenticated:
|
|
|
return @"ERROR_LOCAL_PLAYER_NOT_AUTHENTICATED";
|
|
|
+ case FIRAuthErrorCodeGameKitNotLinked:
|
|
|
+ return @"ERROR_GAME_KIT_NOT_LINKED";
|
|
|
}
|
|
|
}
|
|
|
|
|
|
@@ -1000,6 +1010,10 @@ static NSString *const FIRAuthErrorCodeString(FIRAuthErrorCode code) {
|
|
|
return [self errorWithCode:FIRAuthInternalErrorCodeLocalPlayerNotAuthenticated];
|
|
|
}
|
|
|
|
|
|
++ (NSError *)gameKitNotLinkedError {
|
|
|
+ return [self errorWithCode:FIRAuthInternalErrorCodeGameKitNotLinked];
|
|
|
+}
|
|
|
+
|
|
|
+ (NSError *)notificationNotForwardedError {
|
|
|
return [self errorWithCode:FIRAuthInternalErrorCodeNotificationNotForwarded];
|
|
|
}
|