It's actually not trivial to get right, so using an off-the-shelf component could make sense until you build your own solution. I wrote some thoughts on nip46 and nostr login options at nostrconnect.org and nostrlogin.org
Wow!! Thanks for the advice! I’ll keep that in mind while exploring NIP-46 integration.