Learn R Programming

hdar (version 1.0.5)

Auth: Auth Class

Description

Authorization

Arguments

Methods


Method new()

This function initializes a new instance of the `Auth` class with the specified parameters.

Usage

Auth$new(user = NULL, password = NULL)

Arguments

user

A character string representing the username for authentication.

password

A character string representing the password for authentication.

Returns

An instance of the `Auth` class.


Method token()

This function retrieves a previously generated token.

Usage

Auth$token()

Returns

A character string representing the retrieved token.


Method get_token()

This function generates a unique token for authentication or other purposes.

Usage

Auth$get_token()

Returns

A character string representing the generated token.


Method clone()

The objects of this class are cloneable with this method.

Usage

Auth$clone(deep = FALSE)

Arguments

deep

Whether to make a deep clone.