otpless-headless-sdk v2.0.0. Pinning is disabled by default, so upgrading needs no code change.
Enable pinning
PasssslKind to initialize:
OtplessSslKind values
Pin validation failure
If pin validation fails,OtplessSDK.start() returns a terminal response instead of continuing the auth flow:
responseType:FAILEDstatusCode:5004errorCode:"5004"errorMessage:"SSL pin validation failed"
5004 like any other terminal auth failure: show a fallback or retry path.