Skip to content

Commit 07b0235

Browse files
author
Alexander Mays
committed
installationId only gets set on the session if passed in to the request
Signed-off-by: Alexander Mays <[email protected]>
1 parent bce6244 commit 07b0235

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

users.js

+6-2
Original file line numberDiff line numberDiff line change
@@ -70,9 +70,13 @@ function handleLogIn(req) {
7070
'authProvider': 'password'
7171
},
7272
restricted: false,
73-
expiresAt: Parse._encode(expiresAt).iso,
74-
installationId: req.info.installationId
73+
expiresAt: Parse._encode(expiresAt).iso
7574
};
75+
76+
if (req.info.installationId) {
77+
sessionData.installationId = req.info.installationId
78+
}
79+
7680
var create = new RestWrite(req.config, Auth.master(req.config),
7781
'_Session', null, sessionData);
7882
return create.execute();

0 commit comments

Comments
 (0)