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
REVNAREVNA 

New to OAUTH and APIs. I am trying to generate Accesstoken using Open ID Connect. But returns null

public static String AUTH_PROVIDER_ID = ma_Constants__c.getInstance().Auth_Provider_ID__c;
system.debug('=AUTH PROVIDER VALUE=='+AUTH_PROVIDER_ID);
String accessToken = Auth.AuthToken.getAccessToken(AUTH_PROVIDER_ID, 'Open ID Connect') ;
system.debug('---ACCESS TOKEN---'+accessToken);

I get the return value to be NULL. What are the possible things that could be causing the issue.