Skip to contents

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

# \donttest{

session = current_session()
#null unless currently authenticated
session
#> NULL
# }