Socket
Book a DemoInstallSign in
Socket

faceliveness-ionic

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

faceliveness-ionic

Plugin Ionic FaceLiveness

latest
Source
npmnpm
Version
1.0.8
Version published
Maintainers
1
Created
Source

faceliveness-ionic

Plugin Ionic FaceLiveness

Install

npm install faceliveness-ionic
npx cap sync

API

  • Configure(...)
  • startSDK(...)
  • Interfaces
  • Type Aliases

Configure(...)

Configure(options: ConfigureOptions) => Promise<void>

Allows to cofigure the FaceLivenessPlugin.

You only need to call it once, but you must call it before other methods in this class.

ParamType
optionsConfigureOptions

startSDK(...)

startSDK(options: LivenessStartOptions, callback: GenericCallback) => Promise<string>

Start the FaceLiveness SDK.

ParamTypeDescription
optionsLivenessStartOptionsOptions to start the SDK.
callbackGenericCallbackAllows you to specify a callback and receive the events or any error that happens.

Returns: Promise<string>

Interfaces

ConfigureOptions

PropTypeDescriptionDefault
mobileTokenstringToken to configure the SDK with.
stageCAFStageValuesStage that is related to the token.'prod'
filterFilterValuesFilter to be used.'line-drawing'
useCustomLoadingScreenbooleanUsed to enable a default loading progressbar during loading events. You can set your customized loading screen instead, using the {@link LoadEvent}.false
enableScreenshotsbooleanAndroid Only Used to enable screenshots during the SDK scan. Disabled by default for security reasons.false
imageUrlExpirationTimeTimeValuesUsed to configure an image URL expiration time.'null'

LivenessStartOptions

PropTypeDescription
personIdstringIdentification of the person (E.g.: CPF)

LoadEvent

Simple Load events that hints when there is a loding process happening.

The events following this interface are emmited from the onLoading and onLoaded native callback methods.

PropType
type'loaded' | 'loading'

SuccessEvent

Success event emmited by the onSuccess native callback method.

PropType
type'success'
dataSuccessData

SuccessData

PropTypeDescription
signedResponsestringJWT containing the information related to the FaceAuthenticator/FaceLiveness.

Type Aliases

CAFStageValues

DictionaryValues<typeof CAFStage>

DictionaryValues

Type[keyof Type]

FilterValues

DictionaryValues<typeof Filter>

TimeValues

DictionaryValues<typeof Time>

GenericCallback

Callback that allow handling of events that happens during the authentication/liveness process. The error argument will be set when the onCancel and onError native callbacks execute.

(events: LoadEvent | SuccessEvent | null, err?: any): void

Keywords

capacitor

FAQs

Package last updated on 11 Jan 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts