sm_api_has_credentials: Whether the credentials needed to authenticate on a social...

View source: R/sm.R

sm_api_has_credentialsR Documentation

Whether the credentials needed to authenticate on a social media are configured

Description

Whether the credentials needed to authenticate on a social media are configured

Usage

sm_api_has_credentials(network)

Arguments

network

char, network the name of the social media

Details

this is a purely local check: it looks for stored secrets and never calls the underlying social media API, unlike sm_api_get_token which may perform a live token validity check as part of fetching a token. It is used to report or poll authentication status (setup() menu, check_sm_auth) without the cost of a network round-trip.


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