protected function registerAuthParent(Request $request, IsExtendedUser&Model $extendedUser, ?OAuthHandler $oAuthHandler = null, array $extraData = []): User 	{ 		$oAuthDriver = $request->enum('oauth_driver', OAuthDriver::class); 		$oAuthUser = $oAuthDriver instanceof OAuthDriver && $oAuthHandler instanceof OAuthHandler ? $oAuthHandler->getUser($oAuthDriver, $request->oauth_token) : null;  		/** 		 * @var User $user 		 */ 		$user = $extendedUser->authParent()->create([ 			'name' => $request->name, 			'email' => $request->email, 			'password' => $request->password, 			'role_id' => setting('registration_api_role_id'), 			'email_verified_at' => $oAuthUser instanceof \Laravel\Socialite\Contracts\User && !strcasecmp((string) $oAuthUser->getEmail(), (string) $request->email) ? formatTimestamp() : null, 			...$extraData, 		]);  		if ($oAuthUser instanceof \Laravel\Socialite\Contracts\User) { 			$user->connectOAuthDriver($oAuthDriver, $oAuthUser->getId()); 		}  		return $user; 	}