/
githubmirror
/
wp-calypso
Обзор
Документация
Войти
/
githubmirror
/
wp-calypso
Код
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
trunk
client/server/api/index.ts
18 строк
462 B
Steven Dufresne
Dashboard: serve /.well-known/webauthn for WebAuthn Related Origin Requests (#112678)
27 июл 2026, 04:39
Не верифицирован
27 июл 2026, 04:39
ae2c5f9
Код
Авторство
О чём код?
import config from '@automattic/calypso-config'; import express from 'express'; import signInWithApple from './sign-in-with-apple'; import webauthnRelatedOrigins from './webauthn-related-origins'; export default function api() { const app = express(); if ( config.isEnabled( 'sign-in-with-apple/redirect' ) ) { signInWithApple( app ); } if ( config.isEnabled( 'webauthn/related-origin-requests' ) ) { webauthnRelatedOrigins( app ); } return app; }