Closed AndreasGalster closed 6 years ago
Thanks for the report; Auth0 is great!
I've asked our API team to see whether we can allow the vertical bar / pipe character. I'll let you know what I learn.
Side-note: the validRe
regex was updated recently relation to a couple issues with resolved in the latest release. Doesn't change your issue report but thought I'd mention in case you wanted to pull the latest.
Thanks a lot, hoping for positive feedback because it's a major blocker for us to migrate to stream :( :)
Update from the product team that this change will go onto the roadmap but it isn't possible to prioritise it right away.
In the meantime it should be fairly straight forward to implement a pair of simple mapping functions that convert to/from '|' used by Auth0 into another supported character(s) for use in Stream's Feed Ids.
Yea I see, ok I guess we'll go with this for now. Thanks for the info, hoping to see this in the product soon 😄.
I wonder though if it's actually possible to edit existing stream activities? It looks like it's only possible to view on the dashboard (maybe via API?). E. g. if we want to change all the userIds retrospectively in the activities and get rid of the mapping.
(This is just one use case, I have many use cases where I might want to edit activities retrospectively)
Updates are certainly possible: https://getstream.io/docs/#activity-update
I'll close this ticket for now.
When using auth0, you usually get user IDs such as this:
First, the regex in the utils lib does only support user IDs with characters and dots. Changing from this regex
to this fixes that issue.
However looks like stream-js still doesn't allow those kind of userIds, looks like there is another validation at some point in your backend. Is it possible to allow the | character in userIds?
Maybe this error log is helpful: