Blazor Object Null Reference when using GetTokenAsync

I am trying to retrieve user information using the Users/{id} endpoint and I am getting a object null reference exception when my code executes GetTokenAsync on both the AuthenticationApIClient and the ManagementApiClient. If anyone has any ideas as to what I am doing wrong, it would be appreciated.

var AuthApiClient = new AuthenticationApiClient(Configuration[“Auth0:Domain”]);
var apiToken = await AuthApiClient.GetTokenAsync(new ClientCredentialsTokenRequest
Audience = Configuration[“Auth0:ApiDomain”],
ClientId = Configuration[“Auth0:ClientId”],
ClientSecret = Configuration[“Auth0:ClientSecret”]
var managementApi = new ManagementApiClient(apiToken.AccessToken, Configuration[“Auth0:ApiDomain”]);
var user = await managementApi.Users.GetAsync(userId);