Fixed SecureTransport credentials handling in Core