Replies: 1 comment
-
You can extend what gets passed in the session in your auth configuration (for example if you wanted to add a role you could do):
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Goals
Non-Goals
No response
Background
Your website AI told me this after some conversation back and forth:
Proposal
I use the Postgres adapter. Extend the schema with one colum as such:
role VARCHAR(255) NOT NULL,
Like this:
So that when I call
session.user
in the future, I will be able to callsession.user.role
and get the role desgination(s) of the user to stratify regular users from being able to access certain pages or perform certain actrions.Beta Was this translation helpful? Give feedback.
All reactions