User.Identity.Name value in net core

I have setup auth0 for a blazor wasm application and a separate aspnet-core API. Everything is working as expected but when signing in with Google oauth2 the value of User.Identity.Name is my fullname in the blazor application but in the API the value of User.Identity.Name is my email address. How can i configure the token so that the value of User.Idenity.Name is the same in both the Blazor app and the API? Should I do this in the custom AuthorizationMessageHandler?

Best regards

I could not get the blazor application and API to get the same value of User.Identity.Name. My thought was to use the value as a user key in the db. Instead I use User.FindFirstValue(“sub”), where the value is the same in both applications.