Skip to content
Snippets Groups Projects
Verified Commit 11eae528 authored by Coby Sher's avatar Coby Sher
Browse files

Issue #3280391: Add documentation

parent 35216902
Branches
Tags
3 merge requests!50Issue #3280391: Add anon support to getObjectByPath,!49Add Production Docs Config,!47Issue #3280391: Allow anonymous requests when valid credentials are supplied
......@@ -70,6 +70,13 @@ const allArticlesFromApi = await store.getObject({
objectName: 'node--ds_example',
all: true,
});
// If your DrupalState store has valid credentials, all requests are authorized by default
// To make a request anonymous, use the `anon` option and set it to true
const anonRequest = await store.getObject({
objectName: 'node--recipe',
anon: true,
});
```
To better understand the advantages of Drupal State, below we will compare the
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment