Skip to content

Livechat API livechat/agent.next/:token always throwing error of Invalid token #13341

@rohitmyaim

Description

@rohitmyaim

The above API always throws eror of invalid token

There is a issue in code which I have identified.

                        const room = findOpenRoom(token);
			if (room) {  ==> It should be !room
				throw new Meteor.Error('invalid-token');
			}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions