send token and onConnect