Changed hasState to check on state.access_token