Hi @testuser7 ,
You are welcome :)
You could refer the following documentation to achieve authentication with Azure AD in SPFX Solution:
Connect to Azure AD-secured APIs in SharePoint Framework solutions
SPFx: Calling AAD secured Azure Function on behalf of a user with AadHttpClient
And if the reply above is helpful to this question, I suggest you could accept as answer so that it could be helpful to others in the forum.
Thanks
Best Regards