return authMethod after login and register success.