Merge pull request #790 from Nirothipan/master

Fixes :- Can't access the created Arduino device instance
revert-dabc3590
sumedharubasinghe 7 years ago committed by GitHub
commit f9c739b32c

@ -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(":");

Loading…
Cancel
Save