For how log user is logged in to the application

Thanks for your reply it really helps. Just wanted to know one more thing I am using cacheLocation=localstorage so every time I try to fetch user it return the cached data so when there is a change in user info it return the same old data can I bypass that cache somehow?