simplQ-frontend icon indicating copy to clipboard operation
simplQ-frontend copied to clipboard

Signed in users should be the owners of their existing queues created in the same device

Open maaverik opened this issue 5 years ago • 1 comments

Is your feature request related to a problem? Please describe. If a user creates a temporary queue, and he signs in after that, the created queue is still not owned by anyone.

Describe the solution you'd like All created ownerless queues when the user signs in should change to being owner by the user. This can be done by creating a random token and sending it when a temporary queue/token is created and send this token as the queue owner in the backend and store this token in local storage. When the user signs in, make a backend call to transfer ownership from this token to the user who logged in.

maaverik avatar Jan 17 '21 19:01 maaverik

As a first step, I've added a unique device UUID which will be sent with every unauthenticated request to the backend. So, from now own, every anonymous user will see only their own queues.

Now we need to add a backend endpoint to migrate all resources created against such a UUID to a user and call it after the user logs in.

navaneeth-spotnana avatar Feb 27 '21 09:02 navaneeth-spotnana