How to use onfido-sdk-ui - 3 common examples

To help you get started, we’ve selected a few onfido-sdk-ui examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github binary-com / binary-static / src / javascript / _common / base / onfido.js View on Github external
const init = async () => {
        sdk_token = await simulateCallForApiKey();
        onfidoOut = OnfidoSDK.init({
            containerId: 'onfido',
            // language   : 'en', // Currently only 'en' and 'es' are available - custom language objects can be passed
            // smsNumberCountryCode: 'GB',
            // steps // https://github.com/onfido/onfido-sdk-ui#welcome
            token      : sdk_token,
            useModal   : false,
            // userDetails: { smsNumber: '+447500123456' }, // Some user details can be predefined for user convenience
            onComplete : handleComplete,
        });
    };
github binary-com / binary-static / src / javascript / app / pages / user / account / authenticate.js View on Github external
const initOnfido = async (sdk_token) => {
        if (!$('#onfido').is(':parent')) {
            $('#onfido').setVisibility(1);
            try {
                onfido = Onfido.init({
                    containerId: 'onfido',
                    language   : {
                        locale: getLanguage().toLowerCase() || 'en',
                    },
                    token     : sdk_token,
                    useModal  : false,
                    onComplete: handleComplete,
                    steps     : [
                        'document',
                        'face',
                    ],
                });
                $('#authentication_loading').setVisibility(0);
            } catch (err) {
                $('#error_occured').setVisibility(1);
                $('#authentication_loading').setVisibility(0);

onfido-sdk-ui

JavaScript SDK view layer for Onfido identity verification

SEE LICENSE in LICENSE
Latest version published 1 day ago

Package Health Score

71 / 100
Full package analysis

Popular onfido-sdk-ui functions