UNPKG

@aws-amplify/auth

Version:
19 lines (16 loc) 638 B
import { loadAmplifyRtnPasskeys } from '@aws-amplify/react-native'; import '@aws-amplify/core/internals/utils'; import './errors/passkeyError.mjs'; import { handlePasskeyRegistrationError } from './errors/handlePasskeyRegistrationError.mjs'; // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 const registerPasskey = async (input) => { try { return await loadAmplifyRtnPasskeys().createPasskey(input); } catch (err) { throw handlePasskeyRegistrationError(err); } }; export { registerPasskey }; //# sourceMappingURL=registerPasskey.native.mjs.map