Authenticate user when they login from chat iframe

How are you embedding chat? The chat embeds should use the currently logged in Twitch user, so there shouldn’t be a double login.

To answer your question directly: there is no API for logging a user in. Just the two auth flows in the documentation.