Skip to contents

Create a motherduck access token

Usage

create_md_access_token(
  user_name,
  token_type,
  token_name,
  token_expiration_number,
  token_expiration_unit,
  motherduck_token = "MOTHERDUCK_TOKEN"
)

Arguments

user_name

new users name

token_type

the token type

token_name

the token name

token_expiration_number

the token expiration number - minimum 300 seconds

token_expiration_unit

the token expiration unit (`seconds`,`minutes`,`days`,`weeks`,`months`,`years`,`never`)

motherduck_token

admin user's token

Value

tibble