Base url is computed within Invoke-MgGraphRequest, no need to build or supply it in the request.
Add Import-Module for Microsoft.Graph.Identity.SignIns to prevent "InvalidOperation: Unable to find type [Microsoft.Graph.PowerShell.Models.MicrosoftGraphFido2AuthenticationMethod]" error when trying to register a passkey.