2

How can I pass auth token in API call to server using ng2 smart table? My current code is as below:

this.source = new ServerDataSource(
    http,
        {
            endPoint: environment.ApiBaseUrl + 'questions',
            dataKey: 'data',
            totalKey: 'total',
        }
);

I need to pass token stored in my local storage so that I can recognize the logged in user. I've found this related to this and tried it's last comment but didn't got any success Github

Umair Malik
  • 1,403
  • 3
  • 30
  • 59

0 Answers0