Skip to content

Commit 4ba5f94

Browse files
committed
🏷️ Enforce client adapter type in auth exchange
1 parent b69c347 commit 4ba5f94

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/net/imap/sasl/authentication_exchange.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ def self.build(client, mechanism, *args, sasl_ir: true, **kwargs, &block)
8080
attr_reader :mechanism, :authenticator
8181

8282
def initialize(client, mechanism, authenticator, sasl_ir: true)
83+
client => SASL::ClientAdapter
8384
@client = client
8485
@mechanism = Authenticators.normalize_name(mechanism)
8586
@authenticator = authenticator

0 commit comments

Comments
 (0)