In dev mode the okta sign-in widget works fine but in production it renders but empty.
I imported the widget on the page like so
import * as OktaSignIn from '@okta/okta-signin-widget/dist/js/okta-sign-in.min';
In dev mode the okta sign-in widget works fine but in production it renders but empty.
I imported the widget on the page like so
import * as OktaSignIn from '@okta/okta-signin-widget/dist/js/okta-sign-in.min';
Do you see any errors in your developer console? Did you make sure the source code for okta-sign-in.min.js
is included in your production app?
@mraibe
There are no errors in the developer console. I’m using angular 6 and I think the source code for
okta-sign-in.min.js
should be included in the production app when I do
ng build --prod
However, I tried copying it into the dist/app folder, it didn’t not work.
@mraibe
I reinstalled okta sign-in widget with the 2.14.0 version and it’s working now. Was using the 2.5.0 version. Thanks!
This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.