jira.js
    Preparing search index...

    Function refreshServerOAuth2Token

    • Refresh an access token against a Data Center instance.

      redirectUri is required here where the specification does not ask for it: the Data Center provider validates it on the refresh grant as well, and omitting it earns an invalid_grant that names nothing.

      Parameters

      • params: {
            clientId: string;
            clientSecret: string;
            fetch?: FetchLike;
            host: string;
            redirectUri: string;
            refreshToken: string;
        }
        • clientId: string
        • clientSecret: string
        • Optionalfetch?: FetchLike

          The fetch to reach the instance by. Defaults to the global one.

        • host: string
        • redirectUri: string
        • refreshToken: string

      Returns Promise<OAuth2TokenResponse>