Skip to content

Commit

Permalink
update some comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Josh Calder committed May 29, 2023
1 parent 8db540d commit 82c4f2e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
5 changes: 1 addition & 4 deletions examples/custom-session-next-auth/keystone.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,7 @@ const nextAuthSession = {
| Session
| undefined;
},
// we don't need these unless we want to support the functions
// context.sessionStrategy.start
// context.sessionStrategy.end
//
// we don't need these as next-auth handle start and end for us
async start() {},
async end() {},
};
Expand Down
3 changes: 2 additions & 1 deletion examples/custom-session-next-auth/schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ function hasSession({ session }: { session?: Session }) {

export const lists: Lists = {
Post: list({
// WARNING - for this example, anyone can create, query, update and delete anything
// WARNING - for this example, anyone can that can login can create, query, update and delete anything
// -- anyone with an account on the auth provider you are using can login
access: hasSession,

fields: {
Expand Down

0 comments on commit 82c4f2e

Please sign in to comment.