current_session: Return current cached session

View source: R/current_session.R

current_sessionR Documentation

Return current cached session

Description

Returns the currently cached SB session token. If there is no authenticated session, returns NULL. Emits a warning if the session has expired.

Usage

current_session()

Examples



session = current_session()
#null unless currently authenticated
session


USGS-R/sbtools documentation built on June 1, 2024, 9:47 p.m.