con <- DBI::dbConnect(duckdb::duckdb(dbdir = tempfile()))
show_motherduck_token(con)
DBI::dbDisconnect(con)Show Your MotherDuck Token
Source: R/utils-md.R
Displays the active MotherDuck authentication token associated with the current connection. Useful for debugging or verifying that your session is authenticated correctly.
Usage
show_motherduck_token(.con)Arguments
Value
A tibble containing the current MotherDuck token.
Details
The show_motherduck_token() function executes the internal MotherDuck pragma print_md_token and returns the token information. This function should only be used in secure environments, as it exposes your authentication token in plain text. It requires a valid MotherDuck connection established with DBI::dbConnect().
See Also
Other db-con: install_extensions(), load_extensions(), validate_extension_install_status(), validate_extension_load_status()