TP-24975 | Added Log (#13)

* TP-24975 | Bug Fixes

* TP-24975: bug fix for add members in the team

* TP-24975 | Added Log

Co-authored-by: k.kamalakannan <k.kamalakannan@navi.com>
This commit is contained in:
Mantri Ramkishor
2023-04-26 18:43:44 +05:30
committed by GitHub Enterprise
parent bf750fb13f
commit 90e73120ab

View File

@@ -10,6 +10,11 @@ export class ApiService {
if (!ApiService.instance) {
ApiService.instance = new ApiService();
const userData = localStorage.getItem('user-data');
console.log({ userData });
console.log(
'JSON.parse(userData)?.emailId',
JSON.parse(userData ?? '')?.emailId,
);
ApiService.instance.service.interceptors.request.use((req: any) => {
req.headers['X-Session-Token'] =
localStorage.getItem('react-token') || '';