fix and update
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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'
|
||||
|
||||
@@ -95,7 +95,8 @@
|
||||
{
|
||||
configURL: configUrl,
|
||||
configUrl: configUrl,
|
||||
clientId: clientId
|
||||
clientId: clientId,
|
||||
fields: ['name', 'email', 'picture', 'tel']
|
||||
}
|
||||
]
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user