I have been trying to recreate the tutorial by @dan-auth0 in Typescript, and am having an issue where my routes remain exposed after wrapping them in the ProtectedRoute component. The code is essentially just a copy of the contents of the available github repository, but I am failing to achieve the protection which works in js.
Is there a functioning version of the same repo in Typescript? And would someone be able to take a peek at the code I am using to determine how I am missing to protect my routes?
Here is a link to the tutorial which I mentioned. It is written in js, and I did what I could to convert the code to TypeScript, but am having the issue I mentioned (not with the js).