mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-08-28 23:01:29 +00:00
18 lines
627 B
JavaScript
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;
|