Giter Club home page Giter Club logo

iosbiometriclogin's Introduction

Biometric Logins

IDE Platform Language License

A sample iOS app to demonstrate logins using biometrics (Face ID/Touch ID) available.

Face ID Touch ID
Face ID Touch ID

Features

  1. Written in CleanSwift architecture
  2. A login page to fallback from biometrics authentication failure
  3. A biometrics page to authenticate using biometrics
  4. A dashboard page providing the capability to enable/disable biometrics login
  5. A BiometricsWorker.swift that does all the work to authenticate using Face ID/Touch ID

Biometrics Worker

  • Handles the 3 common use-cases in biometrics authentication:
  1. Success
    • Biometrics authentication is successful
    • Routes user to Dashboard
  2. Cancel
    • User cancels biometrics authentication
    • Routes user back to welcome screen
  3. Error
    • Biometrics authentication unsuccessful due to any possible reason
    • Routes user to Fallback page (Login)

Protips/Pitfalls

  1. In info.plist file, add a description to the key Privacy - Face ID Usage Description. This will be the localizedDescription for Face ID (as you may have already set for Touch ID) and it will suppress any 'app not updated to handle Face ID' messages.
  2. LocalAuthentication framework is used to handle both Face ID and Touch ID.

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.