Used for login into the Leo, it's required for most of the methods. Use the method exec() before use for another class constructor

Hierarchy (view full)

Constructors

Properties

AuthToken: string
Password: string
Route: string = "https://micro-leo.udg.mx/login/v1/validar"
StudentCode?: string
Token: TokenType = ...
User: string
isTokenUsed: boolean = false
options?: Partial<Options>

Methods

  • Execute the login method, it's required for most of the methods. This will load the token and the student code on the class

    Returns Promise<void>

  • Get the token and its vigency

    Returns Required<TokenType>