OAuthRefreshResult class definition is missing a constructor

Issue #2312 duplicate
Ryanthony Baronda created an issue

The OAuthRefreshResult class has below definition:

// Generated by Illuminated Cloud on Mon Oct 31 09:36:31 AEDT 2022. Do not edit.

global class /*Auth.*/OAuthRefreshResult 
{
    global String accessToken;
    global String error;
    global String refreshToken;

    global OAuthRefreshResult(String accessToken, String refreshToken, String error)
    {
    }
}

It is missing below constructor

OAuthRefreshResult(accessToken, refreshToken)

Resulting to inspection error when sample code below is used:

    public override Auth.OAuthRefreshResult refresh(Map<String,String> authProviderConfiguration, String refreshToken) {
        return new Auth.OAuthRefreshResult(newToken, tokenType);
    }

Comments (3)

  1. Scott Wells repo owner

    Please make sure your plugin is up-to-date and regenerate your OST which should include the following for that class with both constructor signatures:

    // Generated by Illuminated Cloud on Wed Jan 18 14:13:34 CST 2023. Do not edit.
    
    global class /*Auth.*/OAuthRefreshResult 
    {
        global String accessToken;
        global String error;
        global String refreshToken;
    
        global OAuthRefreshResult(String accessToken, String refreshToken)
        {
        }
    
        global OAuthRefreshResult(String accessToken, String refreshToken, String error)
        {
        }
    }
    

  2. Log in to comment