Presumably you're referring to Entra Kerberos authentication - as described in https://learn.microsoft.com/en-us/azure/storage/files/storage-files-identity-auth-hybrid-identities-enable?tabs=azure-portal%2Cintune
If so, this should not rely on the storage account key at all (you should remove it from the Credentials Manager on the computer you are creating a drive mapping from to verify this in a reliable manner). The user accounts must be hybrid. For additional prerequisites, refer to the Microsoft Learn article referenced above
If the above response helps answer your question, remember to "Accept Answer" so that others in the community facing similar issues can easily find the solution. Your contribution is highly appreciated.
hth
Marcin