搜索插件、代码仓与 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 项

源码仓库

使用此插件的项目

暂无相关数据。