sm_api_set_auth_mastodon: Save mastodon credentials and store them securely

View source: R/sm-mastodon-api.R

sm_api_set_auth_mastodonR Documentation

Save mastodon credentials and store them securely

Description

Update the underlying storage with the mastodon access token of a network. The token is encrypted.

Usage

sm_api_set_auth_mastodon(shiny_input_list = NULL, network)

Arguments

shiny_input_list

List of shiny input values containing the mastodon specific credentials if not provided the input will be requested interactively

network

char, the network the token belongs to. The instance the token has to be issued by is the one the network is named after.

Details

Update the authentication token of the network. The instance is not asked for: it is part of the network identifier, set once when registering it with sm_add_instance.

Value

Nothing. Called for side effects (saving credentials)

See Also

save_config

Examples

## Not run: 
 #Setting the configuration values
   sm_api_set_auth_mastodon(
     shiny_input_list = list(
           mastodon_mstdn_party_token = "your token here"
     ),
     network = "mastodon.mstdn.party"
   )

## End(Not run)

episomer documentation built on Nov. 26, 2026, 5:07 p.m.