I am trying to protect some of my routes as in you have to be authenticated in order to get directed to that route. and i am wrapping my Routes in a routerWrapper function t