1
0
Fork 0
mirror of https://github.com/simi/omniauth-facebook.git synced 2022-11-09 12:32:45 -05:00

Add initialization option :always_refresh_access_token

This commit is contained in:
Howard Wilson 2012-04-06 11:55:26 +02:00
parent 2e506d67d0
commit 3b4b33bfc4

View file

@ -64,7 +64,7 @@ module OmniAuth
end
def build_access_token
if signed_request_contains_access_token?
if !options[:always_refresh_access_token] && signed_request_contains_access_token?
hash = signed_request.clone
::OAuth2::AccessToken.new(
client,