1 /* This Source Code Form is subject to the terms of the Mozilla Public
2 * License, v. 2.0. If a copy of the MPL was not distributed with this
3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
5 #include "AuthrsTransport.h"
6 #include "AuthrsBridge_ffi.h"
7 #include "nsIWebAuthnController.h"
10 namespace mozilla::dom
{
12 already_AddRefed
<nsIWebAuthnTransport
> NewAuthrsTransport() {
13 nsCOMPtr
<nsIWebAuthnTransport
> transport
;
14 nsresult rv
= authrs_transport_constructor(getter_AddRefs(transport
));
15 if (NS_WARN_IF(NS_FAILED(rv
))) {
18 return transport
.forget();
21 } // namespace mozilla::dom