Function spacetimedb_cli::util::select_identity_config
source · pub async fn select_identity_config(
config: &mut Config,
identity_or_name: Option<&str>,
server: Option<&str>
) -> Result<IdentityConfig, Error>
Expand description
Selects an identity_config
from the config file. If you specify the
identity it will either return the identity_config
for the specified
identity, or return an error if it cannot be found. If you do not specify
an identity this function will either get the default identity if one exists
or create and save a new default identity.