Skip to content

Commit

Permalink
fix access control guide errors
Browse files Browse the repository at this point in the history
  • Loading branch information
dcousens committed Jul 17, 2024
1 parent d3df19f commit ea61b19
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions docs/content/docs/guides/auth-and-access-control.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ Here's an example:

```ts
const Person = list({
access: allowAll,
fields: {
name: text(),
email: text({ isIndexed: 'unique' }),
Expand Down Expand Up @@ -71,15 +72,15 @@ const session = statelessSessions({
});
```

Keystone also comes with a Redis session adapter, which uses a cookie to store a session ID that is looked up in a Redis database; or you can use your own session adapter (for example, if you are using OAuth sessions).
You can use your own session strategy if for example, if you want to use use OAuth sessions.

{% hint kind="tip" %}
Read more about [Session Stores in the Session API Docs](../config/session#session-stores).
{% /hint %}

### Putting it all together

Your entire Keystone config should now look like this:
Your Keystone config should now look like this:

```ts
import { config, list } from '@keystone-6/core';
Expand All @@ -104,6 +105,7 @@ const session = statelessSessions({

const lists = {
Person: list({
access: allowAll,
fields: {
name: text(),
email: text({ isIndexed: 'unique' }),
Expand Down

0 comments on commit ea61b19

Please sign in to comment.