maxmantz / redux-oidc-example

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

Error when loading silent_renew.html #25

Closed hai-nguyen1112 closed 5 years ago

hai-nguyen1112 commented 5 years ago

Hi, thank you again so much for this library. I appreciate your work.

I have an error when loading the silent_renew.html file.

This is my userManager settings:

Screen Shot 2019-07-15 at 2 13 36 PM

This is the content of the silent_renew.html file:

Screen Shot 2019-07-15 at 2 27 12 PM

I also added the silent_redirect_uri to the identity provider:

Screen Shot 2019-07-15 at 2 14 13 PM

However, when the page silent_renew.html was being loaded, there was an error in the console as follows:

Screen Shot 2019-07-15 at 2 15 23 PM

Could you please let me know what I did wrong and how to solve this error? Thank you.

maxmantz commented 5 years ago

Hi and thanks again for your kind words.

The setup you have looks fine, except for the HTML file. You cannot simply put an ES6 import statement in a <script /> tag and expect it to work. Explaining why this is is beyond the scope of this libary and this issue. I strongly recommend familiarizing yourself with tools like Webpack in order to resolve this issue.