Class

TTVLogin

TTVLogin(tool)

Constructor

new TTVLogin(tool)

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

View Source mod/auth.js, line 6

Extends

  • EventEmitter

Members

MenuItem
Gives you a new instance of the twitch menu

View Source mod/auth.js, line 77

String

readonly userid

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

View Source mod/auth.js, line 67

String

readonly username

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

View Source mod/auth.js, line 57

Methods

auth()

Starts the authorization flow

View Source mod/auth.js, line 107

Events

complete

Fires when user is sucessfully is logged in

View Source mod/auth.js, line 213