If I try deleting a previously created token then it just says “Validation failed: Human can’t be blank”.
Not sure where to report bugs, so here it goes.
Here’s the request sent on the ws:
["6","12","lv:phx-GEIgxaOewYK-pq3S","event",{"type":"click","event":"revoke_token","value":{"token":"lJPECAAAAAAACMP2xBBTMflVDmuzlQXo/EShBa7gwrVodHRwczov...<redacted>..uYUgSzeku66oQKLXd5Z6AF8lcvfs=","value":""}}]
and the response
["6","12","lv:phx-GEIgxaOewYK-pq3S","phx_reply",{"status":"ok","response":{"diff":{"1":{"0":""},"2":{"0":""},"3":{"0":""},"5":{"0":{"p":{"0":["",""],"1":["<span"," class=\"","\"></span>"],"2":["",""],"3":["<div"," class=\"flex gap-3 items-center rounded-xl p-4 font-medium bg-navy-950/80 backdrop-blur-sm text-white shadow-lg shadow-violet-950/50 ring-1 ring-navy-300/10 animate-fadeUp\">\n ","\n <p>","</p>\n <button",""," class=\"inline-flex rounded-md p-1.5 text-navy-500 hover:text-navy-200 hover:bg-navy-200/10 focus:outline-none transition\" title=\"Dismiss\" aria-label=\"Dismiss\">\n ","\n </button>\n</div>"]},"d":[[{"0":"","s":0}],[{"0":"","s":0}],[{"0":"","s":0}],[{"0":{"0":" id=\"flash-error\"","1":{"0":{"0":"","1":"hero-x-circle-mini h-6 w-6 text-red-500 shrink-0","s":1,"r":1},"s":2},"2":"Validation failed: Human can't be blank","3":" phx-click=\"[["push",{"value":{"key":"error"},"event":"lv:clear-flash"}],["hide",{"time":200,"to":"#flash-error","transition":[["transition-all","transform","ease-in","duration-200"],["opacity-100","translate-y-0","sm:scale-100"],["opacity-0","translate-y-4","sm:translate-y-0","sm:scale-95"]]}]]\"","4":" phx-value-key=\"error\"","5":{"0":"","1":"hero-x-mark-mini w-5 h-5","s":1,"r":1},"s":3},"s":0}],[{"0":"","s":0}]]}}}}}]