Generalization of login/register with authenticationTokens