You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This issue has happened with me when I created ng2-smart-table component in the module and imported Ng2SmartTableModule in the module which makes JWT based request.
Could be mistake on my part as soon as I remove Ng2SmartTableModule from imports and ng2-smart-table from my components all my failed requests are working properly
The text was updated successfully, but these errors were encountered:
omfd
changed the title
Ng2SmartTableModule makes JWT AUTH working
Ng2SmartTableModule makes JWT AUTH not working
Oct 15, 2018
I have the same Issue,
I think that the issue is related to the fact that the server.data-source.d.js in /lib/data-source/server is importing the HttpClient, and this component will be then used to issue all the consecutive REST calls.
The JWT Auth is usually defined in the App Module therefore if the misconfigured HttpClient is used the JWT auth is not working.
According to the angular docs, the HttpClientModule need only be imported once, in the root of the App.
This issue has happened with me when I created ng2-smart-table component in the module and imported Ng2SmartTableModule in the module which makes JWT based request.
Could be mistake on my part as soon as I remove Ng2SmartTableModule from imports and ng2-smart-table from my components all my failed requests are working properly
The text was updated successfully, but these errors were encountered: