api_user_auth 0.1.4 → 0.1.5
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 209991d6bc56fa10a8606d14e9394551bc37915333045915bf1d911840efa81e
|
4
|
+
data.tar.gz: 9dbeb634d4e2c6a11c2e4fe1a0756d085264e4e6874702b58f7d9228f00c1d8d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
109
|
-
|
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
|
|
@@ -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]).
|
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
|
|