fix(service): invalid promise on login (see also #17 & ca65a8d2)