Skip to contents

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

.con

A valid DBI connection (DuckDB / MotherDuck).

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

Examples

if (FALSE) { # \dontrun{
con <- DBI::dbConnect(duckdb::duckdb())
show_motherduck_token(con)
DBI::dbDisconnect(con)
} # }