Since middleware is handling if the user has forbidden access to the route, we need to implement the loading page which is displayed until the api response is received by the client. It is usually 100-200ms, but in deployed and highly-scaled production environment, it might take more.
Since middleware is handling if the user has forbidden access to the route, we need to implement the loading page which is displayed until the api response is received by the client. It is usually 100-200ms, but in deployed and highly-scaled production environment, it might take more.