jira.js
    Preparing search index...

    Function exchangeServerAuthorizationCode

    • Exchange the authorization code from the redirect callback for tokens.

      Parameters

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

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

        • host: string
        • redirectUri: string

      Returns Promise<OAuth2TokenResponse>