Skip to content

Commit 9e5a4d4

Browse files
author
Jenks Guo
committed
Fixed JWT decode nill issue
1 parent 79549f2 commit 9e5a4d4

File tree

4 files changed

+3
-3
lines changed

4 files changed

+3
-3
lines changed

lib/omniauth/strategies/xero_oauth2.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ def raw_info
5252
'email' => '',
5353
}
5454
else
55-
decoded_info ||= JWT.decode @id_token, nil, false
55+
decoded_info ||= JWT.decode access_token['id_token'], nil, false
5656
@raw_info ||= decoded_info[0]
5757
end
5858
end

lib/xero-oauth2/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
module OmniAuth
22
module XeroOauth2
3-
VERSION = '0.9.2'
3+
VERSION = '0.9.3'
44
end
55
end

omniauth-xero-oauth2.gemspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Gem::Specification.new do |s|
22
s.name = 'omniauth-xero-oauth2'
3-
s.version = '0.9.2'
3+
s.version = '0.9.3'
44
s.licenses = ['MIT']
55
s.summary = 'OAuth2 Omniauth strategy for Xero.'
66
s.description = 'OAuth2 Omniauth straetgy for Xero API.'

pkg/omniauth-xero-oauth2-0.9.3.gem

5 KB
Binary file not shown.

0 commit comments

Comments
 (0)