api_user_auth 0.1.4 → 0.1.5

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: 66a2378f957e4c137ca091af426e6ba94752649894b0bb8cf784bae57dadcdd4
4
- data.tar.gz: ba76b004021299a0b7138f5a9c07177394104d5d299936abb267cf91861113c1
3
+ metadata.gz: 209991d6bc56fa10a8606d14e9394551bc37915333045915bf1d911840efa81e
4
+ data.tar.gz: 9dbeb634d4e2c6a11c2e4fe1a0756d085264e4e6874702b58f7d9228f00c1d8d
5
5
  SHA512:
6
- metadata.gz: 1fade163cff6282948cbf413b4373f6758d66976f3c8e5a2351b286579ed17425131177b6b71ac7b57c9dadec11ef2f9edb39a27e64adcde5df0d85be0bd0f4b
7
- data.tar.gz: 562ad3d088f8e36df4d0e975fda94c8a475269a7507ff30fd9e4196b2faa53ae40b7cf0dfbc574a67c177b2c246118b7b24d4229512997f64bffb48a1e1d6529
6
+ metadata.gz: cc9e776cb3ece78acacd4768fd75dcb41753178b0ab56be33d46c41bfa6c412cb179c2228fd41728aa3d5ba02b1544a0d7024dee42808fe5831019dcfcc3c928
7
+ data.tar.gz: '08cc7844a7dbfa486c5139cb860b11deda175d77cd9657ea25cebd9cf8dce4bd101287200cd52649776c3d0645dbb05be2b80b61f565ec7af7f8884188672dea'
@@ -105,8 +105,11 @@ module ApiUserAuth
105
105
  auth_user.save
106
106
  auth_user
107
107
  else
108
- provider_token.auth_user.is_new = false
109
- provider_token.auth_user
108
+ auth_user = provider_token.auth_user
109
+ auth_user.generate_token
110
+ auth_user.save
111
+ auth_user.is_new = false
112
+ auth_user
110
113
  end
111
114
  end
112
115
 
@@ -1,3 +1,3 @@
1
1
  module ApiUserAuth
2
- VERSION = '0.1.4'.freeze
2
+ VERSION = '0.1.5'.freeze
3
3
  end
@@ -369,10 +369,7 @@ module ApiUserAuth
369
369
 
370
370
  post :provider, params: { provider: 'google', token: 'token' }
371
371
  expect(response).to have_http_status(200)
372
- expect(resp_json[:auth_token]).to eq(token)
373
-
374
- p resp_json
375
-
372
+ expect(resp_json[:auth_token]).not_to be_blank
376
373
  # expect(resp_json[:google_id]).to eq('102030')
377
374
  end
378
375