Files
ppeasy_vg12/resources/js/bootstrap.js
T
2026-10-09 08:21:06 +02:00

14 lines
401 B
JavaScript

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