• Adds a token to the query parameters of a URL.

    Parameters

    • url: string

      URL to use as base

    • authentication: UserSession

      Credentials to be used to generate token for URL

    Returns Promise<string>

    A promise that will resolve with the supplied URL with token=&lt;token&gt; added to its query params unless either the URL doesn't exist or the token can't be generated