Email/password authentication is only for when the session can be maintained - which means it's only useful for browsers and specifically for the web interface. Everything else must use the auth token.

Can you remove this line?