Ends the session for an certain token.

end_session(
  session,
  token = session$unToken,
  curl_handle = session$curl,
  api_baseurl = session$base_url,
  end_point = "/api/auth/logout",
  api_url = paste0(api_baseurl, end_point),
  ...
)

Arguments

session

a list object created via create_session()

token

character, a session token,

curl_handle

a curl handle created by getCurlHandle(). If one is not provided, it will be created. Please note, it is best practice to establish a curl handle when interacting with an API

api_baseurl

character, the base URL for the database server

end_point

character, the API end point for the login

api_url

character, the URL for the database server login

...

additional arguments passed to RCurl::getURL()

Author

Matt Espe