Created a global object service instead. Contains the authentication data.