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
{error:"access denied"}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?
1 Answer
Hi
Have you seen the new additions to the httpClient that are in Ti SDK 3.0.0 GA?
If you have set up authentication then these should help you out.
Your Answer
Think you can help? Login to answer this question!