Skip to contents

Authenticate with PROOF API

Usage

proof_authenticate(username, password)

Arguments

username

(character) HutchNet username

password

(character) HutchNet password

Value

A single token (character) for bearer authentication with the PROOF API

Details

We strongly recommend to not supply password as plain text like proof_authenticate(username = "jane", password = "mypassword"), but rather pull in your password from an environment variable stored outside of R like proof_authenticate(username = "jane", password = Sys.getenv("HUTCH_PWD"))

Timeout

If the PROOF API is unavailable, this function will timeout after 5 seconds. Contact the package maintainer if you get a timeout error. See proof_timeout().