Fix the issue to get the token when the app is loaded at the first time
call the ws logout  + history + query result