Comments (2)
Hey @wendtcode the session data is set in your keystone.ts
file.
To add role you would do something like
const auth = createAuth({
listKey: 'User',
identityField: 'subjectId',
sessionData: `id name email role { id name }`,
autoCreate: true,
That is if role is a separate list, this is graphql so you can add anything that sits on the role
list
Hope this helps.
from keystone-nextjs-auth.
Aha! Thanks for the suggestions!
from keystone-nextjs-auth.
Related Issues (20)
- E-mail login requires an adapter HOT 2
- Can we add `autoUpdate` option? HOT 4
- Can this be used for authentication for a React Native app? HOT 2
- npm shows 4 high severity vulnerabilities HOT 1
- cannot get it to work with auth0 HOT 1
- Compatibility with Keystone Auth HOT 1
- inputPath of customPages must be absolute HOT 1
- Can I get a users session information? HOT 1
- Is there a sample for Credentials? HOT 6
- Invalid Json Response for /api/auth/session HOT 9
- Keystone Removed generateNodeAPI Experimental Feature HOT 4
- Errors when building front end app HOT 1
- authorization in backend example HOT 2
- Feature Request - Adapter Implementation HOT 1
- Logout not working (Keystone <-> Keycloak ) HOT 4
- Azure AD not logging user in HOT 2
- identityField on the provider side HOT 4
- Sign in does not work with any provider HOT 5
- Broken compatibility with new keystone next.config.js template HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from keystone-nextjs-auth.