Skip to content

Commit 86de0e0

Browse files
Run builder hooks only for rodauth (#33)
1 parent 390794d commit 86de0e0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/rodauth/features/omniauth_base.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ def build_omniauth_app
108108
)
109109
builder.configure do |config|
110110
[:request_validation_phase, :before_request_phase, :before_callback_phase, :on_failure].each do |hook|
111-
config.send(:"#{hook}=", -> (env) { env["rodauth.omniauth.instance"].send(:"omniauth_#{hook}") })
111+
config.send(:"#{hook}=", -> (env) { env["rodauth.omniauth.instance"].send(:"omniauth_#{hook}") if env["rodauth.omniauth.instance"] })
112112
end
113113
end
114114
self.class.instance_variable_get(:@omniauth_providers).each do |(provider, *args)|

0 commit comments

Comments
 (0)