mirrored_repositories/Awesome_Login_App/lib/src/features/authentication
import 'package:get/get.dart';
import 'package:login_app/src/features/authentication/screens/profile/profile_screen.dart';
import 'package:login_app/src/repository/authentication_repository/authentication_repository.dart';

class OTPController extends GetxController {
  static OTPController get instance => Get.find();

  void verifyOTP(String otp) async {
    var isVerified = await AuthenticationRepository.instance.verifyOTP(otp);
    isVerified ? Get.offAll(const ProfileScreen()) : Get.back();
  }


}