Skip to content

Correct authentication canceled and biometry not enabled errors #2838

Description

@TimoGlastra

} catch (error) {
if (error instanceof secureEnvironment.KeyNotFoundError) {
throw new Kms.KeyManagementKeyNotFoundError(options.keyId, [this.backend])
}
throw new Kms.KeyManagementError('Error signing with key', { cause: error })
}
}

Currently just generic KMS error thrown. We should create like a Kms.AuthenticationCanceledError, and a Kms.BiometryDisabledError (or something more generic than biometrics, but indicating the authentication method is not available, like AuthenticationNotAvailable).

Should probably be addressed in expo-secure-environment to throw proper errors there, which can be caught in Credo KMS for react native, and then re-emitted as Credo errors

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions