Here is the issue related to "JSON.parse(--)" that you need to address:
ERROR in E:/Arkin_Angular_Material_latestCode/arkin-layout/src/app/core/service/ http.service.ts (62,53): Argument of type 'void | any[]' is not assignable to parameter of type 'string'. Type 'void' is not assignable to type 'string'.
This is the actual code snippet:
refreshToken.then(response => {
if(response != undefined){
const list = JSON.parse(response);
const userSession: UserSession = new UserSession();
userSession.accessToken = list.access_token;
userSession.tokenType = list.token_type;
userSession.refreshToken = list.refresh_token;
userSession.isLoggedin = true;
UserSessionManager.addUserSession(userSession);
console.log(response);
return super.get(fullUrl, this.requestOptions(options))
.catch(this.onCatch)
.do((res: Response) => {
this.onSubscribeSuccess(res);
},(error: any) => {