Replies: 3 comments 1 reply
-
|
It's possible the example is bad. Have you looked at https://github.com/benallfree/pocketpages/blob/main/packages/plugins/js-sdk/src/index.ts#L44 ? |
Beta Was this translation helpful? Give feedback.
-
|
@benallfree In trying to debug my issue I've upgraded to the latest because I think that's where my issue lay. |
Beta Was this translation helpful? Give feedback.
-
|
the original issue of this discussion is fixed by upgrading to a recent version of pocketpages... I didn't check my old version number but I believe anything above https://github.com/benallfree/pocketpages/releases/tag/pocketpages%400.20.0 should be fine and then the API rules are for the collection are now being respected. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I have a question about https://pocketpages.dev/docs/plugins/js-sdk#example-working-with-collections
the docs say that we are getting an authenticated client for the request... assuming the subsequent request would be authenticated as the current user?
To me that still suggests that if I have API rules set on collections they will still be respected. i.e.
if on the
postscollection I have thecreaterule@request.auth.id != ""then the above request would qualify?this doesn't seem to work and it seems that only if I remove the API rule will the request work.
Is there something I am overlooking or how can someone keep the auth context with request?
Beta Was this translation helpful? Give feedback.
All reactions