パッケージ、リポジトリ、アプリカテゴリを検索

パッケージ詳細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
  • 組み込みエラー処理
  • クロスプラットフォーム互換性
  • 既存の認証システムとの統合

適している対象

  • セキュアなユーザー認証を必要とするFlutterアプリ
  • 通信に 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 件

ソースリポジトリ

このパッケージを使用しているプロジェクト

データはまだありません。