Migration from 1.3.x to 2.0.x
This guide covers public API changes between 1.3.x and 2.0.x.
This SDK now requires enrollment onboarding server 2.1.0+.
Breaking Changes
- Rename initializer parameters:
let activation = WDOActivationService(powerAuth: powerAuth, networkingConfig: config)
let verification = WDOVerificationService(powerAuth: powerAuth, networkingConfig: config)
let configuration = WDOConfigurationService(powerAuth: powerAuth, networkingConfig: config)
WDODocumentTypeis nowString.
let documentTypes: [WDODocumentType] = ["ID_CARD", "PASSPORT"]
Use values returned by WDOConfigurationService.getConfiguration(processType:).
- Update verification consent flow:
status()now returnsStatusResult. Readresult.state.consentGet()was renamed togetConsent().consentApprove()was replaced bystart(consentApprovedByUser:).WDOVerificationState.intronow carriesconsentRequired.
- Update verification state handling:
WDOVerificationState.otpnow carriesotpResendPeriodInSeconds.WDOVerificationState.endstatenow carries optionalrejectReason.- Handle
activationFinishby callingfinishActivation(...).
Additions
- Added
WDOConfigurationService. - Added
processTypeto activation start and verification status data. - Added
async throwsvariants for asynchronous APIs. - Added
WDOBaseServicewith sharedacceptLanguageandnetworking. - Demo
getOTP()now acceptsstrategy:.
Checklist
- Rename
config:andwpnConfig:tonetworkingConfig:. - Replace enum-style document types with backend string values.
- Read
StatusResult.stateinstead of using the oldstatus()return type directly. - Replace
consentGet()andconsentApprove()calls. - Handle
activationFinish,rejectReason, and OTP resend period from returned states.
Last updated on Apr 10, 2026 (08:54)
Edit on Github
Send Feedback