You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like to extend the user by also adding the role in the session. If I install only Qwik and add @auth/qwik, I can do this by extending JWT, User, and Session (in the types folder). However, if I add Prisma, the @auth/core folder is duplicated within @auth/qwik, and the extension is no longer recognized, resulting in an error where role is not defined.
Property role does not exist on type User | AdapterUser.
How to reproduce
if I delete the @auth/qwik/node_modules dir and its contents the problem disappears, then with an npm update the folder i recreated and the problem reappears
Expected behavior
the role error should not appear in the JWT callback
The text was updated successfully, but these errors were encountered:
gimonaa
added
bug
Something isn't working
triage
Unseen or unconfirmed by a maintainer yet. Provide extra information in the meantime.
labels
Aug 21, 2024
Environment
Reproduction URL
https://github.com/gimonaa/auth.qwik
Describe the issue
I would like to extend the user by also adding the role in the session. If I install only Qwik and add
@auth/qwik
, I can do this by extendingJWT
,User
, andSession
(in thetypes
folder). However, if I add Prisma, the@auth/core
folder is duplicated within@auth/qwik
, and the extension is no longer recognized, resulting in an error whererole
is not defined.Property
role
does not exist on typeUser | AdapterUser
.How to reproduce
if I delete the
@auth/qwik/node_modules
dir and its contents the problem disappears, then with annpm update
the folder i recreated and the problem reappearsExpected behavior
the role error should not appear in the JWT callback
The text was updated successfully, but these errors were encountered: