Skip to content

Commit 0abaf63

Browse files
committed
remove unused authResponse object
1 parent 3ea4510 commit 0abaf63

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

src/FacebookUtils.js

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,6 @@ const provider = {
4747
(expiration.getTime() - new Date().getTime()) / 1000 :
4848
0;
4949

50-
const authResponse = {
51-
userID: authData.id,
52-
accessToken: authData.access_token,
53-
expiresIn: expiresIn
54-
};
5550
const newOptions = {};
5651
if (initOptions) {
5752
for (const key in initOptions) {
@@ -67,7 +62,7 @@ const provider = {
6762
// from a Parse User that logged in with username/password.
6863
const existingResponse = FB.getAuthResponse();
6964
if (existingResponse &&
70-
existingResponse.userID !== authResponse.userID) {
65+
existingResponse.userID !== authData.id) {
7166
FB.logout();
7267
}
7368

0 commit comments

Comments
 (0)