labguru_authenticate: Labguru Authenticate

View source: R/authenticate.R

labguru_authenticateR Documentation

Labguru Authenticate

Description

This function authenticates a user by email and password and returns a token and sets the system variable LABGURU_TOKEN to that token by default.

Usage

labguru_authenticate(
  email,
  password,
  server = "https://my.labguru.com",
  set_sys = TRUE
)

Arguments

email

character(1) email address

password

character(1) password

server

character(1) Server URL, "https://jonathan.labguru.com" by default

set_sys

logical(1) Set server and token as system variables LABGURU_SERVER and LABGURU_TOKEN

Value

acces token (string)

Examples

## Not run: 
labguru_authenticate(email    = "my@email.com",
                     password = "mypassword",
                     server   = "https://my.labguru.com")

## End(Not run)

BioData/LabguruR documentation built on May 11, 2022, 11:46 p.m.