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:
parent
2e506d67d0
commit
3b4b33bfc4
1 changed files with 1 additions and 1 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue