check_login: Check Slack Login

View source: R/cookies.R

check_loginR Documentation

Check Slack Login

Description

Confirm that a user is logged into Slack.

Usage

check_login(
  team_id,
  session = shiny::getDefaultReactiveDomain(),
  shinyslack_key = Sys.getenv("SHINYSLACK_KEY")
)

Arguments

team_id

The Slack team ID through which the user is being authenticated.

session

The shiny session object. The default shiny::getDefaultReactiveDomain() is likely always sufficient outside of tests.

shinyslack_key

(optional) A key to use to encrypt the string. If not set, the string is returned unencrypted.

Value

A shiny::reactive() which returns a logical indicating whether the user is logged in with proper API access.


r4ds/shinyslack documentation built on March 26, 2024, 4:26 a.m.