Learn R Programming

motherduck (version 0.2.0)

show_motherduck_token: Show Your MotherDuck Token

Description

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)

Value

A tibble containing the current MotherDuck token.

Arguments

.con

A valid DBI connection (DuckDB / MotherDuck).

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()

Examples

Run this code
if (FALSE) {
con <- DBI::dbConnect(duckdb::duckdb(dbdir = tempfile()))
show_motherduck_token(con)
DBI::dbDisconnect(con)
}

Run the code above in your browser using DataLab