The authentication service is used to login and logout of the application, to login it posts the users credentials to the api .