Finished the implementation for the token based login in the back-end. Unit tests already done.