AuthenticatedURLSession

AuthenticatedURLSession wraps a User to allow Bearer authenticated requests and the use of URLSessionDataTask

  • Initializes a AuthenticatedURLSession for given user and session configuration

  • Creates a task that retrieves the contents of a URL based on the specified URL request object. The request will be authenticated and the request will refresh on 401 failure.

  • Creates a task that retrieves the contents of a URL based on the specified URL request object, and calls a handler upon completion. The request will be authenticated and the request will refresh on 401 failure.