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
Cache?: Cache
Route: string = "https://micro-leo.udg.mx/login/v1/validar"
StudentCode?: string
Token: TokenType = ...
isTokenUsed: boolean = false

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

    Parameters

    • student: string

    Returns undefined | Plans

  • Get the token and its vigency

    Returns Required<TokenType>