public function oauthLogin(OAuthToken $request, string $driver): JsonResource 	{ 		$oAuthUser = $this->getOAuthUserFromToken($driver, $request->access_token);  		if (!$oAuthUser) { 			abort(401); 		}  		$user = User::includes() 			->has('user') 			->where(function (object $query) use ($oAuthUser, $driver) { 				$query->where($driver, $oAuthUser->getId())->orWhere('email', $oAuthUser->getEmail()); 			}) 			->firstOrFail();  		$user->update([ 			$driver => $oAuthUser->getId(), 		]);  		$user->fireLoginEvent('api');  		return $user->getModelResource(); 	}