Auth: Auth Class

AuthR Documentation

Auth Class

Description

Authorization

Methods

Public 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.


hdar documentation built on June 17, 2025, 5:08 p.m.