there are a few dozen, but all current models are LE or military sales only and the "smart" technology isn't for access control, but for maintenance tracking. H&K sells it as a $30,000 system which includes conversion of existing competing firearms, but integrates with specific H&K models for this purpose. the RFID is updated via NF radios when the pistols or rifles are serviced and includes various identifying information as well as a notes section for tracking issues or noting round counts, et c.
there are dozens of failed versions going back into the 90's, and iirc only two ever actually made it to market, the Armatix pistol (which was a DA/SA .22LR that had questionable design quality and required a paired watch) and Kodiak's biometric interlock system which integrated the sensor into the grip. both were quite expensive, unreliable, and easily defeated.
essentially you would need to manufacture a firearm from nothing (not adapting an existing design) that integrated a "smart" safety system that had both access control technology and a robust, rugged passive system to allow fail safe and fail deadly modes. ideally you would want to get away from a typical firearm design and move to a purely electronic firing system which would be much harder tamper with if an encoder is required to send a meaningful signal to an actuator to activate the primary explosive. this would remove the simple bypass of a strong magnet, of mechanical tampering, and of using a simple battery due to the encoding sending a specific signal where a "smart" cartridge will not detonate if the received encoded signal doesn't match the data it expects.
in theory this would also mean that purchased ammunition must be registered or activated in order to be used at all with a specific firearm, and the price of manufacturing this ammunition and firearm, and the R&D required to make it a reality would price firearms out of everyone's reach. you would have to have a purposeful backing of a wealthy investor who would want that sort of outcome - something that isn't in short supply, but you would also have to somehow physically get rid of all non-smart technology through forfeiture and also control the knowledge of how to make non-smart firearms entirely, or the materials and tools to do it.
basically a smart gun is pointless, expensive, and would only work in someplace like China where firearms and firearm-related knowledge is strictly controlled and harshly punished.
even then, someone would just use a bomb or gas, or knives.