Skip to content

Commit 77c2bc4

Browse files
committed
Fix omniauth-oauth2 1.4 callback_url regression
Bug introduced by omniauth-oauth2 change: omniauth/omniauth-oauth2#70 Fixes #3
1 parent c0b68d6 commit 77c2bc4

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

lib/omniauth/strategies/twitch.rb

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,11 @@ def build_access_token
5252
def access_token_options
5353
options.access_token_options.inject({}) { |h,(k,v)| h[k.to_sym] = v; h }
5454
end
55-
55+
56+
def callback_url
57+
full_host + script_name + callback_path
58+
end
59+
5660
def authorize_params
5761
super.tap do |params|
5862
options[:authorize_options].each do |k|

0 commit comments

Comments
 (0)