패키지, 저장소 및 앱 카테고리 검색

패키지 상세v2.0.0

twilio_phone_verify

Twilio를 사용하여 전화번호와 이메일 주소를 확인하는 데 도움이 되는 패키지입니다.

AndroidiOSWebmacOSWindowsLinux
30일 다운로드
61
좋아요
29
Pub 점수
130

패키지 설치

flutter pub add twilio_phone_verify

패키지 개요

공개 정보를 바탕으로 생성한 선택 가이드입니다.

twilio_phone_verify 패키지는 Twilio의 통신 서비스를 사용하여 Flutter 애플리케이션에서 전화번호 및 이메일 확인을 간소화합니다. 개발자는 SMS 또는 이메일을 통해 인증 코드를 보내고, 사용자 입력을 검증하며, 보안적인 인증 흐름을 관리할 수 있습니다. 이 패키지는 Android, iOS, Web, macOS, Windows, Linux 등 여러 플랫폼을 지원하여 강력한 신원 확인 기능이 필요한 크로스플랫폼 앱에 이상적입니다. 간편한 통합으로 양방향 인증 및 사용자 온보딩 워크플로우 구현을 용이하게 합니다.

사용 사례

  • 전화번호/이메일 인증을 통한 사용자 등록
  • 이중 인증 설정
  • 안전한 온보딩 흐름
  • 확인된 연락처를 통한 계정 복구
  • 크로스 플랫폼 검증
  • 실시간 코드 검증

주요 기능

  • Twilio 기반의 SMS 및 이메일 인증
  • 다중 플랫폼 지원
  • 코드 전송 및 검증을 위한 간단한 API
  • 내장된 오류 처리
  • 크로스 플랫폼 호환성
  • 기존 인증 시스템과의 통합

적합한 대상

  • 안전한 사용자 인증이 필요한 플러터 앱
  • 통신에 Twilio를 사용하는 개발자
  • 이중 인증을 요구하는 앱
  • 사용자 온보딩 기능을 구축하는 스타트업
  • 다중 플랫폼 애플리케이션을 개발하는 팀
  • 빠른 인증 구현을 우선시하는 프로젝트

고려 사항

  • Twilio 계정과 API 자격 증명이 필요합니다
  • 사용량에 따라 비용이 발생할 수 있습니다
  • 검증을 위해 네트워크 연결이 필요합니다
  • 직접 Twilio SDK를 사용하는 것과 비교해 맞춤 설정이 제한적입니다
  • Twilio 서비스 가용성에 따라 다릅니다
  • SMS 전송 지연 가능성

원본 README

연결된 소스 저장소의 README 원문 스냅샷입니다. 최신 내용은 저장소에서 확인하세요.

Twilio_Phone_Verify

A Package that helps in verifying phone numbers and email addresses using Twilio.

Usage

To use this package :

  • add the dependency to your pubspec.yaml file.
dependencies:
  flutter:
    sdk: flutter
  twilio_phone_verify:
How to use
Create a new Object
TwilioPhoneVerify _twilioPhoneVerify; 
Initialize with values
_twilioPhoneVerify = new TwilioPhoneVerify(
        accountSid: '*************************', // replace with Account SID
        authToken: 'xxxxxxxxxxxxxxxxxx',  // replace with Auth Token
        serviceSid: 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' // replace with Service SID
        );
Phone number verification
Send Code to Phone
 var twilioResponse =
        await _twilioPhoneVerify.sendSmsCode('phone');

    if (twilioResponse.successful)  {
      //code sent
    } else {
      //print(twilioResponse.errorMessage);
    }
Verify Code
    var twilioResponse = await _twilioPhoneVerify.verifySmsCode(
        phone: 'phone', code: 'code');

    if (twilioResponse.successful) {
      if (twilioResponse.verification.status == VerificationStatus.approved) {
        //print('Phone number is approved');
      } else {
        //print('Invalid code');
      }
    } else {
      //print(twilioResponse.errorMessage);
    }
Email Verification

Twilio Verify email channel requires additional Service configuration. Please refer to the email channel setup documentation for detailed instructions.

Send Code to Email
 var twilioResponse =
        await _twilioPhoneVerify.sendEmailCode('email');

    if (twilioResponse.successful)  {
      //code sent
    } else {
      //print(twilioResponse.errorMessage);
    }
Verify Email Code
    var twilioResponse = await _twilioPhoneVerify.verifyEmailCode(
        email: 'email', code: 'code');

    if (twilioResponse.successful) {
      if (twilioResponse.verification.status == VerificationStatus.approved) {
        //print('Email is approved');
      } else {
        //print('Invalid code');
      }
    } else {
      //print(twilioResponse.errorMessage);
    }
Override Email configurations
 var twilioResponse =
        await _twilioPhoneVerify.sendEmailCode('email',channelConfiguration:
    EmailChannelConfiguration(
        from: "override@example.com",
        from_name: "Override Name",
        template_id: "d-4f7abxxxxxxxxxxxx",
		usernameSubstitution: "Foo Bar"
    ));

    if (twilioResponse.successful)  {
      //code sent
    } else {
      //print(twilioResponse.errorMessage);
    }

Features

  • [x] Phone verification
  • [x] Email verification.

Getting Started

For help getting started with Flutter, view our online documentation.

For help on editing package code, view the documentation.

카테고리

의존성

의존성 목록 1 개

소스 저장소

이 패키지를 사용하는 프로젝트

아직 데이터가 없습니다.