I have been working for a while on an app that uses createHTTPClient in a lot of different places to hit my API. Now, I have enabled authentication for a lot of my API services. As expected, I am receiving
Is there a global hook where I can check for access_denied and move the user to the login screen? Should I wrap HTTPClient and centralize this check myself? How would you recommend I structure an app for authentication?