% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/auth.R
\name{auth_login}
\alias{auth_login}
\title{Login to DNAnexus with a token}
\usage{
auth_login(token = NULL)
}
\arguments{
\item{token}{(character) DNAnexus API token. If NULL, reads from the
environment variable \code{DX_API_TOKEN}.}
}
\value{
Invisible TRUE on success.
}
\description{
Authenticates with the DNAnexus Research Analysis Platform using an API
token. Equivalent to running \verb{dx login --token} on the command line.
}
\examples{
\dontrun{
# Supply token directly
auth_login(token = "your_token_here")

# Or store token in ~/.Renviron (recommended):
# usethis::edit_r_environ()
# Add: DX_API_TOKEN=your_token_here
# Save and restart R, then call:
auth_login()
}
}
