Files
2026-07-13 13:34:50 +02:00

18 lines
627 B
JavaScript

import axios from 'axios';
import {
browserSupportsWebAuthn,
browserSupportsWebAuthnAutofill,
platformAuthenticatorIsAvailable,
startAuthentication,
startRegistration,
} from '@simplewebauthn/browser';
window.axios = axios;
window.axios.defaults.headers.common['X-Requested-With'] = 'XMLHttpRequest';
window.browserSupportsWebAuthn = browserSupportsWebAuthn;
window.browserSupportsWebAuthnAutofill = browserSupportsWebAuthnAutofill;
window.platformAuthenticatorIsAvailable = platformAuthenticatorIsAvailable;
window.startAuthentication = startAuthentication;
window.startRegistration = startRegistration;