fuse-open / fuselibs

Fuselibs is the Uno-libraries that provide the UI framework used in Fuse apps
https://npmjs.com/package/@fuse-open/fuselibs
MIT License
176 stars 72 forks source link

Add Biometric Authentication features #1351

Closed ichan-mb closed 4 years ago

ichan-mb commented 4 years ago

It provides the easiest way to do biometric authentication using a sensor available on the device. This feature adds a new trigger action called <Authenticate/> and trigger class called <SupportBiometric/>.

Example

<JavaScript>
    module.exports = {
        resultHandler: function(data) {
            console.dir(data.status) // boolean value true or false
        }
    }
</JavaScript>
<Panel>
    <SupportBiometric>
        <Button Text="Sign In With Biometric">
            <Clicked>
                <Authenticate PromptMessage="We need your Fingerprint" Handler="{resultHandler}" />
            </Clicked>
        </Button>
    </SupportBiometric>
</Panel>

Note

This PR require Uno PR: https://github.com/fuse-open/uno/pull/305

This PR contains: