搜尋套件、儲存庫與 APP 分類

套件詳情v6.0.1

magic_sdk

這是您用於 iOS 或 Android 基於 Flutter 應用的安全、無密碼身分驗證的入口點。

近 30 天下載
98
喜歡數
23
Pub 分數
105

安裝套件

flutter pub add magic_sdk

套件介紹

根據套件公開資料產生的選型評估,僅供參考。

Magic SDK 是一個 Flutter 套件,可為 iOS 和 Android 應用提供安全的無密碼驗證。它透過電子郵件或社交帳戶登入,無需密碼,並利用區塊鏈支援的身份驗證來簡化使用者入門流程。專為 Web3 應用設計,可與去中心化身分系統無縫整合。該 SDK 負責處理驗證流程、權杖管理及安全會話處理,減少開發負擔。非常適合重視使用者體驗與現代安全實務的應用。

適用情境

  • 行動應用程式中的無密碼登入
  • Web3 和基於區塊鏈的身分
  • 無密碼的安全使用者驗證
  • 去中心化身份整合
  • 新用戶的簡化入門流程

主要特色

  • 無密碼登入
  • 基於區塊鏈的身份
  • 電子郵件和社交登入選項
  • 安全的令牌管理
  • 無縫的 Flutter 集成

適合對象

  • 行動應用開發者
  • Web3 和加密貨幣專案
  • 需要強安全性應用
  • 專注於使用者體驗的初創公司
  • 開發人員避免儲存密碼

使用建議

  • 需要互聯網連接
  • 依賴 Magic.link 後端服務
  • 限於iOS和Android平台
  • 可能需要為自訂驗證流程進行額外設定
  • 不適合離線優先的應用程式

原始 README

以下為關聯原始碼儲存庫的 README 原文快照,最新內容請造訪原始碼儲存庫。

We have decided to temporarily archive this repository and place it into maintenance mode. This decision allows us to focus our efforts and resources on advancing our core product line. During this period, active development and the addition of new features will be paused. We value the contributions of the community and appreciate your understanding as we prioritize our main projects. We look forward to resuming development in the future and will keep you updated on any changes.

magic-flutter

Magic empowers developers to protect their users via an innovative, passwordless authentication flow without the UX compromises that burden traditional OAuth implementations.

⚠️ Device Registration Requirement ⚠️

As of v4.1.0, users will be asked to go through a device registration flow to securely confirm any new device they use to login. If you run into this issue, please consider upgrading to the latest version of the SDK.

Get started

Install Flutter & Dart https://flutter.dev/docs/get-started/install

Start the project

$ cd project_root/magic_demo
$ flutter run

Dependency installation is automatically done in the flutter run command

For detail integration please check our official doc or README in each package directory

Package Name Changelog Description
magic_sdk CHANGELOG Flutter entry-point for Magic SDK.
magic_ext_oauth CHANGELOG An Extension to access OAuth providers
magic_ext_tezos CHANGELOG Tezos blockchain extension that integrates with Tezart
magic_ext_solana CHANGELOG Solana blockchain extension that integrates with crypto-please/solana
magic_ext_oidc CHANGELOG Magic Open Id Connect SDK extension for Flutter
Blockchain access

Make sure you have the third-party blockchain dependencies installed

  • Tezos via Tezart
  • Solana via Crypto-please/solana

You may remove these dependencies if you don't need to access these chains

Development Caveats

Files ending with *.g.dart are auto generated type files that are used to serialize / deserialize a class. To generate a new sets of files to reflect your changes please run the command below at your/path/to/magic_sdk

$ dart run build_runner build --delete-conflicting-outputs
Proguard rules

Relates to issue #43.

Add a proguard-rules.pro file under your android/app folder (or update your existing one), with the following rule:

# Preserve annotated Javascript interface methods.
-keepclassmembers class * {
    @android.webkit.JavascriptInterface <methods>;
}

Example: Magic Flutter Demo App

所屬分類

依賴

依賴清單 10 項

原始碼儲存庫

使用此套件的專案

暫無相關資料。