Cool! I always thought this made so much sense as a fedimint module; I even had that conversation with some ppl like a year ago! The NIP is NIP-46, and you want to look at the spec I wrote detailing the Oauth-like flow. I also wrote an oauth-flow spec within my nsecBunker implementation while I was implementing the idea first. Would love to see this in fedimint; this would be super powerful!