Skip to contents

Displays the REDCap API token currently stored in the session as an environment variable. It's essentially a wrapper for Sys.getenv("YOUR_TOKEN_NAME"), but it also validates that the token is formatted like a REDCap token and provides messgaes if not valid.

Usage

view_REDCap_token(DB)

Arguments

DB

A validated `DB` object containing REDCap project data and settings. Generated using load_DB or setup_DB

Value

Invisible. Prints a message displaying the stored token.

Details

This function retrieves the REDCap API token associated with the specified `DB` object and displays it as a message. The token is not returned as an R object to maintain security. Use this function to confirm the token currently in use without exposing it unnecessarily.

See also

Other Token Functions: set_REDCap_token(), test_REDCap_token()