Initial code to send token as a response to authenticate.