Users can only have at most 2 active tokens at any time. You don't need to keep track of a token since earthdatalogin can retrieve your tokens with your user name and password. However, should you want to revoke a token, you can do so with this function.
Usage
edl_revoke_token(
username = default("user"),
password = default("password"),
token_number = 1
)Arguments
- username
Earthdata Login user name. Defaults to the
EARTHDATA_USERenvironment variable, or else the login stored forurs.earthdata.nasa.govin~/.netrc. Register for a free account at https://urs.earthdata.nasa.gov.- password
Earthdata Login password. Defaults to the
EARTHDATA_PASSWORDenvironment variable, or else the password stored forurs.earthdata.nasa.govin~/.netrc.- token_number
Which token (1 or 2)