Error Handling

Errors produced by this library are of type WPNError that come from our networking layer. For more information, visit the library documentation.

Custom Error Reasons

In addition to pre-defined error reasons available in the networking library, we offer more reasons to further offer better error handling.

Operation errors

Option Name Description
operations_invalidActivation Request needs valid powerauth activation.
operations_alreadyFailed Operation is already in a failed state.
operations_alreadyFinished Operation is already in a finished state.
operations_alreadyCanceled Operation is already in a canceled state.
operations_alreadyRejected Operation expired.
operations_authExpired Operation has expired when trying to approve the operation.
operations_rejectExpired Operation has expired when trying to reject the operation.
operations_QROperationFailed Couldn’t sign QR operation.

Push errors

Option Name Description
push_alreadyRegistering Push registration is already in progress.

OIDC errors

Option Name Description
oidc_randomBytesFailed Failure when generating random bytes for cryptographic purposes.
oidc_codeChallengeGenerationFailed Failure during the generation of the PKCE code challenge.
oidc_invalidDeeplink Invalid deeplink, which could not be parsed or handled.
oidc_authorizationUrlCreationFailed Failure during the creation of the authorization URL required for OIDC.
oidc_activationFailed When activation of PowerAuthSDK via OIDC failed.
Last updated on Feb 17, 2025 (14:32) Edit on Github Send Feedback
Search

2.0.x

Mobile Token SDK for iOS