Caller id notion was not working with sharings through the Pryv browser because the separator between token and callerid was not matching the one expected by the API (space).
Through this PR, we ensure that the client-side callerid separator (+) is replaced by the API separator (space) before creating the sharing Connections.
It has been tested on a local app-web (with a domain hardcoded to pryv.me) with the following steps:
Login in Pryv browser
Share a slice with manage level
Copy the sharing (from /#sharings) and add a '+callerid' at the end
Open the modified sharing url in a browser
Click Add content, Note (make sure the authorized streams match the sharing permissions)
Check that the createdBy field of the new Event contains the token AND the caller id (separated by a space)
Caller id notion was not working with sharings through the Pryv browser because the separator between token and callerid was not matching the one expected by the API (space).
Through this PR, we ensure that the client-side callerid separator (+) is replaced by the API separator (space) before creating the sharing Connections.
It has been tested on a local app-web (with a domain hardcoded to pryv.me) with the following steps: