function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
MagulanDuraipandianMagulanDuraipandian 

Auth.AuthToken.getAccessToken returning null value

String accessToken = Auth.AuthToken.getAccessToken(authProviderId, 'Open ID connect');
        system.debug('Access Token is ' + accessToken);

here authProviderId has my Auth. Provider id.

It is returning null value.
logontokartiklogontokartik
Which provider are you trying to connect to? also can you try using "open id connect" all smalls? If its google API generally, the token gets expired, so you need to call refreshAuthToken() method. 
MagulanDuraipandianMagulanDuraipandian
@logontokartik - I am using Facebook provider.

Do u have sample code?