This is essentially reintroducing a feature that was removed from core because it was too dangerous - if you ever mishandle these invitation tokens, whoever stole them (before the intended recipient uses them) could sign into the forum as the recipients. I highly suggest not using this style of invite for any moderator or admin accounts.
That’s why the code to handle this is already there, but you’ll need some custom fiddling to actually reach it.