fix and update

This commit is contained in:
lendry
2026-07-01 16:26:43 +03:00
parent f7c01a3963
commit ee8aaf9889
9 changed files with 50 additions and 8 deletions

View File

@@ -104,6 +104,10 @@ export function OAuthClientOneTapSection({
<code>configURL</code> для FedCM: <code>{endpoints.fedcmConfigUrl}</code> (не{' '}
<code>{frontendBase}/idp-api/fedcm/config.json</code>).
</li>
<li>
Для disclosure (имя, email, аватар, телефон) RP должен передавать{' '}
<code>{`fields: ['name', 'email', 'picture', 'tel']`}</code> в вызове FedCM (Chrome 132+).
</li>
<li>
При ошибке NetworkError проверьте, что <code>PUBLIC_API_URL</code> = <code>{endpoints.issuer}</code>.
</li>

View File

@@ -95,7 +95,9 @@ export function buildOneTapExamples(urls: OneTapUrls, clientId: string, redirect
identity: {
providers: [{
configURL: '${fedcmConfigUrl}',
clientId: '${clientId}'
clientId: '${clientId}',
// Chrome 132+: disclosure в диалоге FedCM (имя, email, аватар, телефон)
fields: ['name', 'email', 'picture', 'tel']
}]
},
mediation: 'optional'

View File

@@ -95,7 +95,8 @@
{
configURL: configUrl,
configUrl: configUrl,
clientId: clientId
clientId: clientId,
fields: ['name', 'email', 'picture', 'tel']
}
]
},