session_age: a convienence function for getting the age of a session.

Description

See pkg.env$session_birthdate for time when session was created. See pkg.env$session_expires for session age when session goes stale

Usage

1

Arguments

session

Session object from authenticate_sb. Defaults to anonymous or last authenticated session

sb_id

An sbitem object or a character ScienceBase ID corresponding to the item

...

Additional parameters are passed on to GET, POST, HEAD, PUT, or DELETE

Value

difftime object

Examples

1
2
3
4
5
## Not run: 
authenticate_sb('bbadger@usgs.gov')
sbtools::session_age()

## End(Not run)

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

All documentation is copyright its authors; we didn't write any of that.