Home Reference Source Test
public class | source

Github

Github class

Constructor Summary

Public Constructor
public

constructor(token: string, username: string, password: string, on2Fa: Function, note: string, noteUrl: string, scopes: string[])

Create a Github instance

Public Constructors

public constructor(token: string, username: string, password: string, on2Fa: Function, note: string, noteUrl: string, scopes: string[]) source

Create a Github instance

Params:

NameTypeAttributeDescription
token string

Set token to login with auth-token

username string

Set username to login with username and password

password string

Set password to login with username and password

on2Fa Function

Set on2Fa to support 2 factor authentication

note string

Note description for the new token

noteUrl string

Note url for the new token

scopes string[]

Auth token scopes