fix: JID: Fix parsing of IRI auth component
XMPP IRIs may be presented in the form of xmpp://test-auth@example.org
, where the //
signals the processing application to authenticate as that node.
XMPP IRIs containing an auth component don't necessarily have a /
to split for after stripping xmpp://
.
From https://datatracker.ietf.org/doc/html/rfc5122#section-2.3
In accordance with Section 3.2 of RFC 3986 [URI], the authority component is preceded by a double slash ("//") and is terminated by the next slash ("/"), question mark ("?"), or number sign ("#") character, or by the end of the IRI/URI.
This does not fix anything regarding the fact that there is no signalling that the parsed JID may be used for auth by the application, but it fixes parsing valid IRIs.