Hi there,
Thank you for your content, I've learned a lot from your post. However, I see you make some mistakes during using auth context. First, you created auth context in src/auth/AuthContext.ts but you imported the context from ./auth/Context instead of ./auth/AuthContext. The second problem I saw in your code that AuthContext may be undefined, we should use optional chaining to avoid Object is possibly 'undefined' error.