Constructs a pins::board_connect() scoped to the viewer's own Posit Connect account, for use as the session_mgmt_backend blockr.core::blockr_option(). When the content has the Connect API Integration enabled, Connect injects a per-viewer session token into the request, which this exchanges for a viewer-scoped API key via connectapi::connect() so each user reads and writes pins under their own namespace. With no token present (e.g. local development), it falls back to pins::board_local().

user_pins_board(session = shiny::getDefaultReactiveDomain())

Arguments

session

Shiny session whose request carries the Connect user session token; defaults to the current reactive domain.

Value

A pins_board: a viewer-scoped board_connect, or board_local when no Connect session token is available.

Details

Requires the connectapi package and the CONNECT_SERVER environment variable.