We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d9a7c59 commit 2786de2Copy full SHA for 2786de2
lib/omniauth/strategies/wix.rb
@@ -13,6 +13,14 @@ class Wix < OmniAuth::Strategies::OAuth2
13
option :provider_ignores_state, true
14
15
uid { request.params["instanceId"] }
16
+
17
+ credentials do
18
+ hash = {"token" => access_token.token}
19
+ hash["refresh_token"] = access_token.refresh_token if access_token.refresh_token
20
+ hash["expires_at"] = access_token.expires_at if access_token.expires?
21
+ hash["expires"] = access_token.expires?
22
+ hash
23
+ end
24
25
def client
26
::OAuth2::Client.new(options.client_id, options.client_secret, deep_symbolize(options.client_options)) do |b|
lib/omniauth/wix/version.rb
@@ -1,5 +1,5 @@
1
module Omniauth
2
module Wix
3
- VERSION = "0.1.2"
+ VERSION = "0.1.3"
4
end
5
0 commit comments