From 961b7e435e1273cff2d3b8ddb2e90ccf940fda0b Mon Sep 17 00:00:00 2001 From: Martin Dosch Date: Fri, 12 Apr 2024 10:25:55 +0200 Subject: [PATCH] FAST: Check for changed token after sasl2Success. --- xmpp.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xmpp.go b/xmpp.go index f5a6758..60b84d8 100644 --- a/xmpp.go +++ b/xmpp.go @@ -742,7 +742,7 @@ func (c *Client) init(o *Options) error { if bind2 { c.jid = v.AuthorizationIdentifier } - if v.Token.Token != "" { + if v.Token.Token != "" && v.Token.Token != o.FastToken { m := f.Authentication.Inline.Fast.Mechanism switch { case slices.Contains(m, "HT-SHA-256-EXPR") && tls13: