lib/omniauth/strategies/wix.rb in omniauth-wix-0.1.0 vs lib/omniauth/strategies/wix.rb in omniauth-wix-0.1.1
- old
+ new
@@ -10,9 +10,11 @@
:token_url => 'https://www.wix.com/oauth/access.json'
}
option :provider_ignores_state, true
+ uid { request.params["state"] }
+
def client
::OAuth2::Client.new(options.client_id, options.client_secret, deep_symbolize(options.client_options)) do |b|
b.request :json
b.adapter Faraday.default_adapter
end