Replies: 2 comments 11 replies
-
I am also struggling with this :-( get the same issue as you. The docs were updated a while ago I am wondering if there is an issue with this strategy since some updates? |
Beta Was this translation helpful? Give feedback.
11 replies
-
//You need to provide custom types for the auth().sessionClaims object, simply redeclare this interface in the global namespace and provide your own custom keys. export {}; // Create a type for the roles declare global { |
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
-
Following role-based-login-strategy article, i ran into an issue:
Typescript is yelling on
if (session && session.user.role === 'Admin')
at.role
property.Anybody, how do i bypass this issue? I modified local node modules rules, but in production it still won't allow :(
Beta Was this translation helpful? Give feedback.
All reactions