Skip to content
Browse files

Prevent oauth2 from interpreting Facebook's expires field as expires_…

…in, when it's really expires_at
  • Loading branch information...
1 parent c06341e commit 2e506d67d07f752c4febd528b07240692cc77b4f @watsonbox committed Apr 5, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/omniauth/strategies/facebook.rb
View
2 lib/omniauth/strategies/facebook.rb
@@ -69,7 +69,7 @@ def build_access_token
::OAuth2::AccessToken.new(
client,
hash.delete('oauth_token'),
- hash.merge!(access_token_options)
+ hash.merge!(access_token_options.merge(:expires_at => hash.delete('expires')))
)
else
with_authorization_code! { super }.tap do |token|

0 comments on commit 2e506d6

Please sign in to comment.
Something went wrong with that request. Please try again.