Giter Club home page Giter Club logo

fluat_auth's Introduction

Fluat_auth

Fluat_auth阿里号码认证服务SDK插件.

文档

官方文档

原生SDK版本 iOS: V2.10.1 Android: V2.10.1

请按照文档中指示 注册应用获取到iOSKey 和 AndroidKey 用于初始化SDK

默认使用者掌握或了解iOS或Android原生开发

功能

  • 一键登录
  • 本机号码校验
  • 授权页部分UI定制 (如需高度定制化授权页UI,请自行修改原生代码即可)

安装

pubspec.yaml 文件中添加fluat_auth依赖:

dependencies:
  fluat_auth: ^1.0.0

注意:请看好所使用的版本号

使用

初始化SDK

fluat.initAliAuthSDK(
    iOSSecretKey: ios_key, androidSecretKey: android_key, loggerEnable: true)

检验环境

await fluat.checkEnvAvailable(authType: fluat.FluATAuthType.LOGIN).then((value) {
  setState(() {
    _fastLogin = value;
  });
});

监听事件回调

_event = fluat.authEventHandler.listen((event) {
});

唤起授权页面

fluat.showAuthLoginPage(uiConfig: fluat.AuthLoginUIConfig());

释放监听

_event.cancel();

更多功能和参数,请查看源码

fluat_auth's People

Contributors

alanjn avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.