Aquí está la configuración de mi cliente:
const settings = { userStore: new WebStorageStateStore({ store: window.localStorage }), client_id: 'authtest', automaticSilentRenew: true, accessTokenExpiringNotificationTime: 10, response_type: 'code', scope: 'openid profile email offline_access', };
La página de actualización silenciosa es una página html estática
<!DOCTYPE html> <html> <head> <title>Silent Renew Token</title> </head> <body> <script src="https://cdnjs.cloudflare.com/ajax/libs/oidc-client/1.11.5/oidc-client.min.js" integrity="sha512-pGtU1n/6GJ8fu6bjYVGIOT9Dphaw5IWPwVlqkpvVgqBxFkvdNbytUh0H8AP15NYF777P4D3XEeA/uDWFCpSQ1g==" crossorigin="anonymous" referrerpolicy="no-referrer" ></script> <script> console.log('renewing tokens'); new Oidc.UserManager({ userStore: new Oidc.WebStorageStateStore({ store: window.localStorage }), }).signinSilentCallback(); </script> </body> </html>
Quería comprobar cómo funciona exactamente y hay algo extraño:
¿Se supone que esto funciona así? Mi tabla [PersistedGrant]
está creciendo muy rápido durante esta prueba (6 registros cada 50 segundos). ¿Cuál es el problema y cómo solucionarlo?