OAuthSession.this

Test/advanced constructor: inject a refresh function (the refresh-token-grant call) directly, bypassing the live HTTP client.

  1. this(OAuthClient oauth, AuthorizationServerMetadata as_, RegisteredClient client, TokenStore store, string resource, StoredToken token)
  2. this(string resource, StoredToken token, TokenStore store, TokenSet delegate(string refreshToken) @(safe) refreshFn)
    class OAuthSession
    @safe
    this