-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
rxdb-server replication endpoint user data is not refreshed for query modifier #6593
Comments
I do not understand. The authData is send to the SSE endpoint once, it will not be send when changed or does it? |
under the comment "The auth-data might be expired..." the auth data is reloaded (with the same request data). If I understand it correctly it is reloaded every time, we receive a change on |
No, this will only account for ttls of the auth data. It will not magically get new updated auth data from the client. |
Yeah sorry by the way I didn't open this as an issue, it was sad that before contributing feature changes, the contributor should open an issue for it. It just seems to me that recomputing |
Computing the auth data is easy, so we do that. SEE are one-directional things, we do not have client-side-updated authData without manually sending it again or reopening the stream. |
Im using rxdb-server with the according replication plugin. An issue I noticed is when I change the auth data of a user, the data sent by the pull stream doesn't reflect the change. I found the source of the behaviour below.
rxdb-server\src\plugins\server\endpoint-replication.ts 179-235
So, we create the
docDataMatcherStream
at the beginning of the event stream and we don't change it till the request closes. My question would be: Are there any reasons why thedocDataMatcherStream
is not updated? We retrieve theauthData
for every change anyway.If updateing the
docDataMatcherStream
is a fine approach and the behaviour wouldn't contradict anything, I would create a fix for this issue.The text was updated successfully, but these errors were encountered: