File tree Expand file tree Collapse file tree
custom-session-validation Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11import { config } from '@keystone-6/core' ;
2- import { statelessSessions } from '@keystone-6/core/session' ;
32import { createAuth } from '@keystone-6/auth' ;
3+ import { statelessSessions } from '@keystone-6/auth/session' ;
44import { lists } from './schema' ;
55
66/**
Original file line number Diff line number Diff line change 11import { config } from '@keystone-6/core' ;
2- import { statelessSessions } from '@keystone-6/core /session' ;
2+ import { statelessSessions } from '@keystone-6/auth /session' ;
33import { createAuth } from '@keystone-6/auth' ;
44
55import { lists , extendGraphqlSchema } from './schema' ;
Original file line number Diff line number Diff line change 11import { KeystoneConfig , SessionStrategy } from '@keystone-6/core/types' ;
22import { config } from '@keystone-6/core' ;
3- import { statelessSessions } from '@keystone-6/core /session' ;
3+ import { statelessSessions } from '@keystone-6/auth /session' ;
44import { createAuth } from '@keystone-6/auth' ;
55import { lists } from './schema' ;
66
Original file line number Diff line number Diff line change 11import { createAuth } from '@keystone-6/auth' ;
22import { config } from '@keystone-6/core' ;
3- import { statelessSessions } from '@keystone-6/core /session' ;
3+ import { statelessSessions } from '@keystone-6/auth /session' ;
44import { permissionsList } from './schemas/fields' ;
55import { Role } from './schemas/Role' ;
66import { OrderItem } from './schemas/OrderItem' ;
Original file line number Diff line number Diff line change 11import { config } from '@keystone-6/core' ;
2- import { storedSessions } from '@keystone-6/core /session' ;
2+ import { storedSessions } from '@keystone-6/auth /session' ;
33import { createAuth } from '@keystone-6/auth' ;
44import { createClient } from '@redis/client' ;
55import { lists } from './schema' ;
Original file line number Diff line number Diff line change 11import { config } from '@keystone-6/core' ;
2- import { statelessSessions } from '@keystone-6/core /session' ;
2+ import { statelessSessions } from '@keystone-6/auth /session' ;
33import { createAuth } from '@keystone-6/auth' ;
44import { lists } from './schema' ;
55
Original file line number Diff line number Diff line change 11import { config } from '@keystone-6/core' ;
2- import { statelessSessions } from '@keystone-6/core /session' ;
2+ import { statelessSessions } from '@keystone-6/auth /session' ;
33import { createAuth } from '@keystone-6/auth' ;
44import { lists } from './schema' ;
55import { TypeInfo } from '.keystone/types' ;
Original file line number Diff line number Diff line change 11import { config } from '@keystone-6/core' ;
2- import { statelessSessions } from '@keystone-6/core /session' ;
2+ import { statelessSessions } from '@keystone-6/auth /session' ;
33import { createAuth } from '@keystone-6/auth' ;
44import { lists } from './schema' ;
55
Original file line number Diff line number Diff line change 99 "module" : " ./dist/keystone-6-auth.esm.js" ,
1010 "default" : " ./dist/keystone-6-auth.cjs.js"
1111 },
12+ "./session" : {
13+ "module" : " ./session/dist/keystone-6-auth-session.esm.js" ,
14+ "default" : " ./session/dist/keystone-6-auth-session.cjs.js"
15+ },
1216 "./pages/InitPage" : {
1317 "module" : " ./pages/InitPage/dist/keystone-6-auth-pages-InitPage.esm.js" ,
1418 "default" : " ./pages/InitPage/dist/keystone-6-auth-pages-InitPage.cjs.js"
2125 },
2226 "dependencies" : {
2327 "@babel/runtime" : " ^7.16.3" ,
28+ "@hapi/iron" : " ^6.0.0" ,
2429 "@keystone-ui/button" : " ^7.0.2" ,
2530 "@keystone-ui/core" : " ^5.0.2" ,
2631 "@keystone-ui/fields" : " ^7.1.2" ,
2732 "@keystone-ui/loading" : " ^6.0.2" ,
2833 "@keystone-ui/notice" : " ^6.0.2" ,
34+ "cookie" : " ^0.5.0" ,
2935 "cross-fetch" : " ^3.1.4" ,
3036 "fast-deep-equal" : " ^3.1.3" ,
31- "graphql" : " ^16.6.0"
37+ "graphql" : " ^16.6.0" ,
38+ "uid-safe" : " ^2.1.5"
3239 },
3340 "devDependencies" : {
3441 "@keystone-6/core" : " ^3.1.0" ,
4148 "preconstruct" : {
4249 "entrypoints" : [
4350 " index.ts" ,
44- " pages/*.tsx"
51+ " pages/*.tsx" ,
52+ " session/index.ts"
4553 ]
4654 },
4755 "repository" : " https://github.com/keystonejs/keystone/tree/main/packages/auth"
Original file line number Diff line number Diff line change 1+ {
2+ "main" : " dist/keystone-6-auth-session.cjs.js" ,
3+ "module" : " dist/keystone-6-auth-session.esm.js"
4+ }
You can’t perform that action at this time.
0 commit comments