standard_id-google 0.1.0 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 95c20a20efa84d33b74f4e388d7b1555930686793abd05a8a6a539466ed8cce5
4
- data.tar.gz: 5739ad0bb2ed57bfa108d6d1d1edc5accf75e9d16f408cc575ab11d1ebe39ee1
3
+ metadata.gz: 77c483758db0802e58687b5c8ed4465ed8d4c5ecb1bd4af9f7078b6ed12d236b
4
+ data.tar.gz: '00569352c386b2b28c6cfacbdda6640f2bcaa287af315c2d15820726bc7a89be'
5
5
  SHA512:
6
- metadata.gz: 73cd9fc0d21f75c81686aa98b3c63452e85cc3c38d86c9c43d794976b95179c9f7fda0c479867c6e583a9f40610d2328b916cfb4c4de739daa67c2bbb7664460
7
- data.tar.gz: ac3238d7819d350f30f188ee01425a1595d761d1ca018c69871a62f0ecfbcf3e483b74f43bd6b1c1f45c66a6f79c8994d1117551652a96622987b4a82c21a2ca
6
+ metadata.gz: 528bb72eb448ce2f3c4078d64b31d9d91ab6602cd176279ead86226849c295a25494af7cb4a8b0703260f90b47bf5a77d094b5b137eef5506c4e46158052f7d7
7
+ data.tar.gz: 4cf122d55787bf6fa36902023afab87c4540c0a9824899447a7b0e81ce4082f9ca3a0f92d0f1d970067c61f7a52ab9638c97a7d7bd2fd3d5cd1d6f44a113c8a6
@@ -145,16 +145,17 @@ module StandardId
145
145
  private
146
146
 
147
147
  def credentials
148
- @credentials ||= begin
149
- if StandardId.config.social.google_client_id.blank? || StandardId.config.social.google_client_secret.blank?
150
- raise StandardId::InvalidRequestError, "Google provider is not configured"
151
- end
152
-
153
- {
154
- client_id: StandardId.config.social.google_client_id,
155
- client_secret: StandardId.config.social.google_client_secret
156
- }
148
+ client_id = StandardId.config.google_client_id
149
+ client_secret = StandardId.config.google_client_secret
150
+
151
+ if client_id.blank? || client_secret.blank?
152
+ raise StandardId::InvalidRequestError, "Google provider is not configured"
157
153
  end
154
+
155
+ {
156
+ client_id: client_id,
157
+ client_secret: client_secret
158
+ }
158
159
  end
159
160
 
160
161
  def verify_token(access_token)
@@ -2,6 +2,6 @@
2
2
 
3
3
  module StandardId
4
4
  module Google
5
- VERSION = "0.1.0"
5
+ VERSION = "0.1.1"
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: standard_id-google
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jaryl Sim