Skip to content

[Room] Access token is sent along socket data #9

@TylerJDev

Description

@TylerJDev

Within the file "\UsersRoomsPage\index.vue", the users access token is sent along with the data sent via the socket.

On line 64

this.socketConnect.on('user', (data) => { ... });

Data returns the following:

[
  {
    "id": "id",
    "userCount": 1,
    "access_token": "ACCESS_TOKEN",
    "devices": {
      "devices": [
        {
          "id": "id",
          "is_active": false,
          "is_private_session": false,
          "is_restricted": false,
          "name": "Device",
          "type": "Computer",
          "volume_percent": 21
        }
      ]
    }
  }
]

Alongside of the access_token, the device(s) ID is also being returned. This data should not reach the client side, only the back end for usage of validation.

Metadata

Metadata

Assignees

Labels

RoomIssues/enhancement for the room componentbugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions