TTVLogin

new TTVLogin(tool)

This module manages the login flow
Parameters:
Name Type Description
tool TTVTool
Fires:

Extends

  • EventEmitter

Members

Gives you a new instance of the twitch menu

readonly userid :String

Gives you the userid of the logged in user. Is empty when not logged in.

readonly username :String

Gives you the username of the logged in user. Is empty when not logged in.

Methods

auth()

Starts the authorization flow

Events

complete

Fires when user is sucessfully is logged in