adding user details

merge-requests/1/head
Nirothipan 7 years ago
parent 1a01c756b2
commit be26b6d5c0

@ -28,6 +28,7 @@ function onRequest(context) {
var jwtClient = jwtService.getJWTClient();
var encodedClientKeys = session.get(constants["ENCODED_TENANT_BASED_WEB_SOCKET_CLIENT_CREDENTIALS"]);
var token = "";
var user = session.get(constants.USER_SESSION_KEY);
if (encodedClientKeys) {
var tokenUtil = require("/app/modules/oauth/token-handler-utils.js")["utils"];
var resp = tokenUtil.decode(encodedClientKeys).split(":");
@ -50,4 +51,4 @@ function onRequest(context) {
}
}
return {"device": device, "websocketEndpoint": websocketEndpoint};
}
}

Loading…
Cancel
Save