Multiple requests are returning errors

I’m using axios to intercept requests and responses from an API. To make my work easier, I’m testing the following library axios-auth-refresh. This library checks for a 401 error and refreshes the token and updates all order states. My problem is that when I make multiple requests the API always returns the 401 and the […]

Multiple requests are returning errors – axios auth refresh

I’m using axios to intercept requests and responses from an API. To make my work easier, I’m testing the following library axios-auth-refresh. This library checks for a 401 error and refreshes the token and updates all order states. My problem is that when I make multiple requests the API always returns the 401 and the […]

Intercept 401 error and prevent console error message

I’m using the following library axios-auth-refresh to automatically refresh the token. When I make a call to the API it returns a 401 error and in this way the library is triggered in order to execute the refresh token and ensure that all requests are successfully completed. I’m using axios to make API calls and […]

By Harry
Published
Categorized as angular, axios, javascript, jwt, typescript Tagged , , , ,

Axios Interceptor – Synchronous multi-request mechanism for the Refresh Token

Is there a way to make the axios.interceptors.request.use function synchronize so that each request is executed in an orderly way, that is, the second only executes at the end of the first? The objective is to intercept the requests and check if the token is valid or not. If the token is not valid or […]

By Harry
Published
Categorized as access-token, angular, axios, jwt, typescript Tagged , , , ,

Interceptor – multi-request mechanism for the Refresh Token

Is there a way to make the axios.interceptors.request.use function synchronize so that each request is executed in an orderly way, that is, the second only executes at the end of the first? The objective is to intercept the requests and check if the token is valid or not. If the token is not valid or […]

By Harry
Published
Categorized as access-token, angular, axios, jwt, typescript Tagged , , , ,

Use Virtual Scroll in image gallery

I’m trying to implement a virtual scroll in my image gallery. My problem is that the implementation doesn’t work correctly. First, the elements are displayed in vertical position, when in fact they should respect the horizontal breakpoints and only then respect the vertical scroll. Second, with the scroll elements appear with huge spacing. Does anyone […]

By Harry
Published
Categorized as angular, angular-material, css, html, typescript Tagged , , , ,

ThreeJS – Initial size of 3D model too large/zoom

I’m using the ThreeJS library to view 3D files. My problem is that the initial state with the 3D model appears too big or zoomed. Is there a way to reduce the Zoom or distance of the 3D so that it appears in the correct proportions? Error DEMO HTML <canvas id="renderCanvas"></canvas> TS ngOnInit(){ const canvas […]

By Harry
Published
Categorized as 3d, angular, javascript, three.js, typescript Tagged , , , ,

Jquery style overlays media queries in small screens

I’m using a sidenav and I’m trying to responsive on large devices (desktops) and small devices (mobile). On desktop devices, I want the menu to always be open in the left corner, but on mobile, and according to media queries I want the menu to disappear. When I get back to the desktop I want […]

By Harry
Published
Categorized as angular, css, html, jquery, typescript Tagged , , , ,

Jquery style overlays media queries

I’m using a sidenav and I’m trying to responsive on large devices (desktops) and small devices (mobile). On desktop devices, I want the menu to always be open in the left corner, but on mobile, and according to media queries I want the menu to disappear. When I get back to the desktop I want […]

By Harry
Published
Categorized as angular, css, html, javascript, typescript Tagged , , , ,

Display menu buttons in just two columns and multiple lines

I’m using a sidenav with menu and submenu. I want to present the submenu buttons in just 2 columns and multiple lines. Right now they are all presented in just one column and I don’t know how to solve this. Can anyone help me solve my problem? DEMO Problem HTML <div style="whidth: 100%; height: 100%"> […]

By Harry
Published
Categorized as angular, angular-material, css, html, typescript Tagged , , , ,

Still Have Questions?


Our dedicated development team is here for you!

We can help you find answers to your question for as low as 5$.

Contact Us
faq