minetest.register authentication handler

Description
See example below for reference.