Skip to content

Commit 168ea32

Browse files
committed
resolve auth after initializer instead of before
1 parent 152b1f6 commit 168ea32

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

gems/smithy-client/lib/smithy-client/plugins/resolve_auth.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ class ResolveAuth < Plugin
2727

2828
option(:auth_schemes) { {} }
2929

30-
def before_initialize(client_class, options)
31-
options[:auth_resolver] ||= client_class.auth_resolver.new
30+
def after_initialize(client)
31+
client.config.auth_resolver ||= client.class.auth_resolver.new
3232
end
3333

3434
# @api private

0 commit comments

Comments
 (0)