SmartSelfie™ Enrollment and Authentication

Perform SmartSelfie™ Enrollment and Authentication Jobs

SmartSelfie™ Authentication is exposed as a flow which performs the following high level steps:

  1. Displays instructions to the user

  2. Requests camera permissions (if not already granted)

  3. Captures and saves Liveness and Selfie images

  4. Submits the job to the Smile ID API

  5. Delivers the result back to the caller

If you are registering a user for the first time, you should use SmileIDSmartSelfieEnrollment Flutter widget

SmileIDSmartSelfieEnrollment(
    userId: "random-user-id/generated-user-id",
    // There are more parameters -- they correspond 1:1 with the native SDK parameters
    onSuccess: (String? result) {
        // Your success handling logic
    },
    onError: (String errorMessage) {
        // Your error handling logic
    }
)

If you are authenticating a previously registered user, you should use SmileIDSmartSelfieAuthentication Flutter widget

SmileIDSmartSelfieAuthentication(
    userId: "random-user-id/generated-user-id",
    // There are more parameters -- they correspond 1:1 with the native SDK parameters
    onSuccess: (String? result) {
        // Your success handling logic
    },
    onError: (String errorMessage) {
        // Your error handling logic
    }
)

Last updated