maxmantz / redux-oidc-example

Small ReactJS application to demonstrate the usage of redux-oidc
MIT License
108 stars 68 forks source link

[Question] Silent Renew File Pattern #24

Closed DanGrund closed 5 years ago

DanGrund commented 5 years ago

What is the reason for having the silent-renew outside of the react app instead of just adding a route in the router?

maxmantz commented 5 years ago

This is because oidc-client mounts this page inside an iframe and uses it to automatically renew the token. For this reason, it has to be a physical HTML file and not just simply a route.